You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-04-30 20:49:04 +02:00
39 lines
1.1 KiB
Plaintext
Vendored
39 lines
1.1 KiB
Plaintext
Vendored
Base = "/tmp/vnnmoosn.qqb.sqlite";
|
|
Table = "test";
|
|
|
|
Fields = New Array;
|
|
Fields.Add("name");
|
|
Fields.Add("salary");
|
|
|
|
Filters = New Array;
|
|
|
|
FilterStructure1 = New Structure;
|
|
|
|
FilterStructure1.Insert("field", "name");
|
|
FilterStructure1.Insert("type" , "=");
|
|
FilterStructure1.Insert("value", "Vitaly");
|
|
FilterStructure1.Insert("union", "AND");
|
|
FilterStructure1.Insert("raw" , False);
|
|
|
|
FilterStructure2 = New Structure;
|
|
|
|
FilterStructure2.Insert("field", "age");
|
|
FilterStructure2.Insert("type" , "BETWEEN");
|
|
FilterStructure2.Insert("value", "20 AND 30");
|
|
FilterStructure2.Insert("raw" , True);
|
|
|
|
Filters.Add(FilterStructure1);
|
|
Filters.Add(FilterStructure2);
|
|
|
|
Sort = New Structure("created_at", "DESC");
|
|
Count = 1;
|
|
|
|
Options = New Structure;
|
|
Options.Insert("table" , Table);
|
|
Options.Insert("fields", Fields);
|
|
Options.Insert("filter", Filters);
|
|
Options.Insert("order" , Sort);
|
|
Options.Insert("limit" , Count);
|
|
Options.Insert("db" , Base);
|
|
|
|
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "GetRecords", Options); |