17 using System.Collections.Generic;
25 using NUnit.Framework;
27 namespace Deveel.Data.Index {
42 cornerTime = DateTimeOffset.UtcNow;
46 AddRow(tmpTable, 1,
"test1", cornerTime);
47 AddRow(tmpTable, 2,
"test2", cornerTime.AddSeconds(2));
48 AddRow(tmpTable, 3,
"test3", cornerTime.AddSeconds(5));
66 var result = table.SelectRowsEqual(1, name);
68 Assert.IsNotNull(result);
69 Assert.IsNotEmpty(result);
71 var index = result.First();
72 Assert.AreEqual(0, index);
80 var result = table.SelectRowsEqual(1, name, 0,
id);
81 Assert.IsNotNull(result);
82 Assert.IsNotEmpty(result);
84 var index = result.First();
85 Assert.AreEqual(0, index);
92 var result = table.SelectRowsGreater(0,
id);
94 Assert.IsNotNull(result);
95 Assert.IsNotEmpty(result);
96 Assert.AreEqual(2, result.Count());
98 Assert.AreEqual(1, result.First());
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static DataObject Date(DateTimeOffset value)
Defines the contract to access the data contained into a table of a database.
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
Describes the name of an object within a database.
static DataObject String(string s)
static NumericType Numeric()
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
static DateType DateTime()
void SelectEqualOneColumn()
SqlTypeCode
Enumerates the codes of all SQL types handled by the system.
static DataObject BigInt(long value)
static StringType String()
void SelectEqualTwoColumns()
Defines the metadata properties of a table existing within a database.
DateTimeOffset cornerTime
void AddRow(TemporaryTable tmpTable, long id, string name, DateTimeOffset date)