Debian Codegraph @

test/command/suite/load/ifexists/time_float.expected

raw
1 table_create Reports TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Reports content COLUMN_SCALAR Text
4 [[0,0.0,0.0],true]
5 column_create Reports modified_at COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 load --table Reports
8 [
9 {"_key": "a", "content": "", "modified_at": 1663989875.438}
10 ]
11 [[0,0.0,0.0],1]
12 load --table Reports --ifexists 'content == "" && modified_at <= 1663989875.437'
13 [
14 {"_key": "a", "content": "not update"}
15 ]
16 [[0,0.0,0.0],0]
17 select Reports
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 1
28 ],
29 [
30 [
31 "_id",
32 "UInt32"
33 ],
34 [
35 "_key",
36 "ShortText"
37 ],
38 [
39 "content",
40 "Text"
41 ],
42 [
43 "modified_at",
44 "Time"
45 ]
46 ],
47 [
48 1,
49 "a",
50 "",
51 1663989875.438
52 ]
53 ]
54 ]
55 ]
56 load --table Reports --ifexists 'content == "" && modified_at <= 1663989875.438'
57 [
58 {"_key": "a", "content": "update"}
59 ]
60 [[0,0.0,0.0],1]
61 select Reports
62 [
63 [
64 0,
65 0.0,
66 0.0
67 ],
68 [
69 [
70 [
71 1
72 ],
73 [
74 [
75 "_id",
76 "UInt32"
77 ],
78 [
79 "_key",
80 "ShortText"
81 ],
82 [
83 "content",
84 "Text"
85 ],
86 [
87 "modified_at",
88 "Time"
89 ]
90 ],
91 [
92 1,
93 "a",
94 "update",
95 1663989875.438
96 ]
97 ]
98 ]
99 ]