DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Sql.Schemas.QueryExtensions Class Reference

Static Public Member Functions

static void CreateSchema (this IQuery context, string name, string type)
 
static bool SchemaExists (this IQuery context, string name)
 
static ObjectName ResolveSchemaName (this IQuery context, string name)
 

Detailed Description

Definition at line 22 of file QueryExtensions.cs.

Member Function Documentation

static void Deveel.Data.Sql.Schemas.QueryExtensions.CreateSchema ( this IQuery  context,
string  name,
string  type 
)
inlinestatic

Definition at line 23 of file QueryExtensions.cs.

23  {
24  if (!context.UserCanCreateSchema())
25  throw new InvalidOperationException(); // TODO: throw a specialized exception
26 
27  context.CreateObject(new SchemaInfo(name, type));
28  }
static ObjectName Deveel.Data.Sql.Schemas.QueryExtensions.ResolveSchemaName ( this IQuery  context,
string  name 
)
inlinestatic

Definition at line 34 of file QueryExtensions.cs.

34  {
35  if (String.IsNullOrEmpty(name))
36  throw new ArgumentNullException("name");
37 
38  return context.ResolveObjectName(DbObjectType.Schema, new ObjectName(name));
39  }
A long string in the system.
DbObjectType
The kind of objects that can be handled by a database system and its managers
Definition: DbObjectType.cs:27
static bool Deveel.Data.Sql.Schemas.QueryExtensions.SchemaExists ( this IQuery  context,
string  name 
)
inlinestatic

Definition at line 30 of file QueryExtensions.cs.

30  {
31  return context.ObjectExists(DbObjectType.Schema, new ObjectName(name));
32  }
DbObjectType
The kind of objects that can be handled by a database system and its managers
Definition: DbObjectType.cs:27

The documentation for this class was generated from the following file: