22 using NUnit.Framework;
24 namespace Deveel.Data.Sql {
28 using (var session = base.CreateAdminSession(database)) {
29 using (var query = session.CreateQuery()) {
34 query.CreateTable(tableInfo,
false,
false);
39 return base.CreateAdminSession(database);
46 query.FromClause.AddTable(
"test_table");
48 Assert.DoesNotThrow(() =>
Query.DeclareInsensitiveCursor(
"c1", query));
51 Assert.IsTrue(exists);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
override ISession CreateAdminSession(IDatabase 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.
The representation of a single database in the system.
void AddColumn(ColumnInfo column)
Adds a new column to the table at the last position of the columns list in the table metadata...
A container for the FROM clause of a select statement.
An isolated session to a given database for a given user, encapsulating the transaction for operation...
Represents a column selected to be in the output of a select statement.
static StringType String()
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)
DbObjectType
The kind of objects that can be handled by a database system and its managers
Defines the metadata properties of a table existing within a database.
void DeclareInsensitiveCursor()