17 using System.Collections.Generic;
25 using NUnit.Framework;
27 namespace Deveel.Data.Sql {
47 var cornerTime = DateTimeOffset.UtcNow;
51 AddRow(tmpTable, 1,
"test1", cornerTime);
52 AddRow(tmpTable, 2,
"test2", cornerTime.AddSeconds(2));
53 AddRow(tmpTable, 3,
"test3", cornerTime.AddSeconds(5));
55 tmpTable.BuildIndexes();
64 var list = result.ToList();
66 Assert.IsNotEmpty(list);
67 Assert.AreEqual(1, list.Count);
68 Assert.AreEqual(expectedRow, list[0]);
71 [TestCase(
"test2", 1)]
72 [TestCase(
"test3", 2)]
75 var list = result.ToList();
77 Assert.IsNotEmpty(list);
78 Assert.AreEqual(1, list.Count);
79 Assert.AreEqual(expectedRow, list[0]);
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static DataObject Date(DateTimeOffset value)
void SelectRowsWhereStaticId(int id, int expectedRow)
Defines the contract to access the data contained into a table of a database.
void SelectRowsWhereStaticName(string name, int expectedRow)
Describes the name of an object within a database.
static DataObject String(string s)
SqlExpressionType
All the possible type of SqlExpression supported
static NumericType Numeric()
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DateType DateTime()
static DataObject VarChar(string s)
static DataObject BigInt(long value)
void AddRow(TemporaryTable tmpTable, long id, string name, DateTimeOffset date)
static StringType String()
Defines the metadata properties of a table existing within a database.