mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-21 21:27:27 +02:00
32 lines
911 B
Plaintext
Vendored
32 lines
911 B
Plaintext
Vendored
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_E607_1d.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;
|
|
|
|
Result = OPI_SQLite.GetRecords(Table, Fields, Filters, Sort, Count, Base);
|