DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Sql.Compile.SchemaCompileTests Class Reference
Inheritance diagram for Deveel.Data.Sql.Compile.SchemaCompileTests:
Deveel.Data.Sql.Compile.SqlCompileTestBase

Public Member Functions

void CreateSchema ()
 
void DropSchema ()
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.Sql.Compile.SqlCompileTestBase
SqlCompileResult Compile (string sql)
 

Detailed Description

Definition at line 10 of file SchemaCompileTests.cs.

Member Function Documentation

void Deveel.Data.Sql.Compile.SchemaCompileTests.CreateSchema ( )
inline

Definition at line 12 of file SchemaCompileTests.cs.

12  {
13  const string sql = "CREATE SCHEMA test_schema";
14 
15  var result = Compile(sql);
16 
17  Assert.IsNotNull(result);
18  Assert.IsFalse(result.HasErrors);
19 
20  Assert.IsNotEmpty(result.Statements);
21  Assert.AreEqual(1, result.Statements.Count);
22 
23  var statement = result.Statements.FirstOrDefault();
24 
25  Assert.IsNotNull(statement);
26  Assert.IsInstanceOf<CreateSchemaStatement>(statement);
27 
28  var schemaStatement = (CreateSchemaStatement) statement;
29  Assert.AreEqual("test_schema", schemaStatement.SchemaName);
30  }
void Deveel.Data.Sql.Compile.SchemaCompileTests.DropSchema ( )
inline

Definition at line 33 of file SchemaCompileTests.cs.

33  {
34  const string sql = "DROP SCHEMA test_schema";
35 
36  var result = Compile(sql);
37 
38  Assert.IsNotNull(result);
39  Assert.IsFalse(result.HasErrors);
40 
41  Assert.IsNotEmpty(result.Statements);
42  Assert.AreEqual(1, result.Statements.Count);
43 
44  var statement = result.Statements.FirstOrDefault();
45 
46  Assert.IsNotNull(statement);
47 
48  Assert.IsInstanceOf<DropSchemaStatement>(statement);
49 
50  var schemaStatement = (DropSchemaStatement) statement;
51  Assert.AreEqual("test_schema", schemaStatement.SchemaName);
52  }

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