21 using NUnit.Framework;
23 namespace Deveel.Data.Sql.Statements {
27 var query = base.CreateQuery(session);
28 CreateTestTables(query);
38 context.CreateTable(tableInfo1);
39 context.AddPrimaryKey(tn1,
"id");
46 context.CreateTable(tableInfo2);
47 context.AddPrimaryKey(tn2,
"id");
53 const string sql =
"DROP TABLE test_table2";
55 Assert.DoesNotThrow(() =>
Query.ExecuteQuery(sql));
60 const string sql =
"DROP TABLE APP.test_table1";
67 const string sql =
"DROP TABLE IF EXISTS APP.test_table1, test_table2";
69 Assert.DoesNotThrow(() =>
Query.ExecuteQuery(sql));
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
Defines the metadata properties of a column within a table of a database.
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
static NumericType Integer()
Describes the name of an object within a database.
ForeignKeyAction
Enumerates the foreign key referential trigger actions.
An isolated session to a given database for a given user, encapsulating the transaction for operation...
override IQuery CreateQuery(ISession session)
void CreateTestTables(IQuery context)
static DateType DateTime()
void DropNonReferencedTable()
static StringType String()
Defines the metadata properties of a table existing within a database.
void DropReferencedTable()