22 using NUnit.Framework;
24 namespace Deveel.Data.Sql {
27 protected override void OnSetUp(
string testName) {
28 var table = CreateTable();
30 if (testName !=
"InsertInto") {
31 InsertIntoTable(table);
36 var row = table.NewRow();
37 row.SetValue(0,
"Antonello Provenzano");
43 row.SetValue(0,
"Maart Roosmaa");
49 row.SetValue(0,
"Rezaul Horaque");
62 Query.CreateTable(tableInfo);
63 return Query.GetMutableTable(tableName);
68 Assert.Inconclusive();
76 Assert.DoesNotThrow(() => deleteCount =
Query.DeleteFrom(
ObjectName.
Parse(
"APP.test_table"), queryExpression));
77 Assert.AreEqual(1, deleteCount);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
void SameSessionInsertInto()
override void OnSetUp(string testName)
static NumericType Integer()
Describes the name of an object within a database.
void InsertIntoTable(IMutableTable table)
RowId AddRow(Row row)
Persists a new row to the table.
IMutableTable CreateTable()
static SqlReferenceExpression Reference(ObjectName objectName)
static StringType String()
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)
Defines the metadata properties of a table existing within a database.
An interface that defines contracts to alter the contents of a table.
void SameSessionDeleteFrom()
static SqlBinaryExpression GreaterThan(SqlExpression left, SqlExpression right)