Definition at line 25 of file DropTableTests.cs.
override ISession Deveel.Data.Sql.DropTableTests.CreateAdminSession |
( |
IDatabase |
database | ) |
|
|
inlineprotectedvirtual |
Reimplemented from Deveel.Data.ContextBasedTest.
Definition at line 26 of file DropTableTests.cs.
27 using (var session = base.CreateAdminSession(database)) {
28 using (var query = session.CreateQuery()) {
29 var tn1 = ObjectName.Parse(
"APP.test_table1");
34 query.CreateTable(tableInfo1);
35 query.AddPrimaryKey(tn1,
"id");
37 var tn2 = ObjectName.Parse(
"APP.test_table2");
42 query.CreateTable(tableInfo2);
43 query.AddPrimaryKey(tn2,
"id");
50 return base.CreateAdminSession(database);
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 NumericType Integer()
ForeignKeyAction
Enumerates the foreign key referential trigger actions.
static DateType DateTime()
static StringType String()
Defines the metadata properties of a table existing within a database.
void Deveel.Data.Sql.DropTableTests.DropAllTables |
( |
| ) |
|
|
inline |
Definition at line 74 of file DropTableTests.cs.
75 var tableNames =
new[] {
76 ObjectName.Parse(
"APP.test_table1"),
77 ObjectName.Parse(
"APP.test_table2"),
80 Assert.DoesNotThrow(() =>
Query.DropTables(tableNames));
void Deveel.Data.Sql.DropTableTests.DropNonReferencedTable |
( |
| ) |
|
|
inline |
Definition at line 54 of file DropTableTests.cs.
55 var tableName = ObjectName.Parse(
"APP.test_table2");
56 Assert.DoesNotThrow(() =>
Query.DropTable(tableName));
59 Assert.DoesNotThrow(() => exists =
Query.TableExists(tableName));
60 Assert.IsFalse(exists);
void Deveel.Data.Sql.DropTableTests.DropReferencedTable |
( |
| ) |
|
|
inline |
Definition at line 64 of file DropTableTests.cs.
65 var tableName = ObjectName.Parse(
"APP.test_table1");
69 Assert.DoesNotThrow(() => exists =
Query.TableExists(tableName));
70 Assert.IsTrue(exists);
A database exception that represents a constraint violation.
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Sql/DropTableTests.cs