Definition at line 29 of file UpdateStatementTests.cs.
void Deveel.Data.Sql.Statements.UpdateStatementTests.AddTestData |
( |
IQuery |
context | ) |
|
|
inlineprivate |
Definition at line 51 of file UpdateStatementTests.cs.
52 var table = context.GetMutableTable(ObjectName.Parse(
"APP.test_table"));
53 var row = table.NewRow();
static DataObject Date(DateTimeOffset value)
static DataObject Integer(int value)
static DataObject String(string s)
static DataObject Boolean(SqlBoolean value)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
override IQuery Deveel.Data.Sql.Statements.UpdateStatementTests.CreateQuery |
( |
ISession |
session | ) |
|
|
inlineprotectedvirtual |
void Deveel.Data.Sql.Statements.UpdateStatementTests.CreateTestTable |
( |
IQuery |
context | ) |
|
|
inlineprivate |
Definition at line 37 of file UpdateStatementTests.cs.
38 var tableInfo =
new TableInfo(ObjectName.Parse(
"APP.test_table"));
47 context.CreateTable(tableInfo);
48 context.AddPrimaryKey(tableInfo.TableName,
"id",
"PK_TEST_TABLE");
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static BooleanType Boolean()
static NumericType Integer()
void AddColumn(ColumnInfo column)
Adds a new column to the table at the last position of the columns list in the table metadata...
static DateType DateTime()
static SqlReferenceExpression Reference(ObjectName objectName)
static StringType String()
Defines the base class for instances that represent SQL expression tree nodes.
static SqlFunctionCallExpression FunctionCall(ObjectName functionName)
Defines the metadata properties of a table existing within a database.
void Deveel.Data.Sql.Statements.UpdateStatementTests.ParseSimpleUpdate |
( |
| ) |
|
|
inline |
Definition at line 79 of file UpdateStatementTests.cs.
80 const string sql =
"UPDATE table SET col1 = 'testUpdate', col2 = 22 WHERE id = 1";
82 IEnumerable<SqlStatement> statements = null;
83 Assert.DoesNotThrow(() => statements = SqlStatement.Parse(sql));
84 Assert.IsNotNull(statements);
86 var statement = statements.FirstOrDefault();
88 Assert.IsNotNull(statement);
89 Assert.IsInstanceOf<UpdateStatement>(statement);
void Deveel.Data.Sql.Statements.UpdateStatementTests.ParseSimpleUpdateWithLimit |
( |
| ) |
|
|
inline |
Definition at line 93 of file UpdateStatementTests.cs.
94 const string sql =
"UPDATE table SET col1 = 'testUpdate', col2 = 22 WHERE id = 1 LIMIT 20";
96 IEnumerable<SqlStatement> statements = null;
97 Assert.DoesNotThrow(() => statements = SqlStatement.Parse(sql));
98 Assert.IsNotNull(statements);
100 var statement = statements.FirstOrDefault();
102 Assert.IsNotNull(statement);
103 Assert.IsInstanceOf<UpdateStatement>(statement);
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.Statements/UpdateStatementTests.cs