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

Static Public Member Functions

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

Detailed Description

Definition at line 6 of file QueryContext.Schemas.cs.

Member Function Documentation

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

Definition at line 7 of file QueryContext.Schemas.cs.

7  {
8  if (!context.UserCanCreateSchema())
9  throw new InvalidOperationException(); // TODO: throw a specialized exception
10 
11  context.CreateObject(new SchemaInfo(name, type));
12  }
static ObjectName Deveel.Data.Sql.Schemas.QueryContext.ResolveSchemaName ( this IQueryContext  context,
string  name 
)
inlinestatic

Definition at line 18 of file QueryContext.Schemas.cs.

18  {
19  if (String.IsNullOrEmpty(name))
20  throw new ArgumentNullException("name");
21 
22  return context.ResolveObjectName(DbObjectType.Schema, new ObjectName(name));
23  }
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.QueryContext.SchemaExists ( this IQueryContext  context,
string  name 
)
inlinestatic

Definition at line 14 of file QueryContext.Schemas.cs.

14  {
15  return context.ObjectExists(DbObjectType.Schema, new ObjectName(name));
16  }
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: