Debian Codegraph @

test/command/suite/select/slices/offset_limit.expected

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Memos TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Memos date COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 column_create Memos tag COLUMN_SCALAR Tags
8 [[0,0.0,0.0],true]
9 load --table Memos
10 [
11 {"_key": "Groonga is fast!", "date": "2016-05-19 12:00:00", "tag": "Groonga"},
12 {"_key": "Mroonga is fast!", "date": "2016-05-19 12:00:01", "tag": "Mroonga"},
13 {"_key": "Groonga sticker!", "date": "2016-05-19 12:00:02", "tag": "Groonga"},
14 {"_key": "Rroonga is fast!", "date": "2016-05-19 12:00:03", "tag": "Rroonga"}
15 ]
16 [[0,0.0,0.0],4]
17 select Memos --limit 0 --slices[all].filter 'true' --slices[all].offset 1 --slices[all].limit 2 --slices[all].sort_keys _id
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 4
28 ],
29 [
30 [
31 "_id",
32 "UInt32"
33 ],
34 [
35 "_key",
36 "ShortText"
37 ],
38 [
39 "date",
40 "Time"
41 ],
42 [
43 "tag",
44 "Tags"
45 ]
46 ]
47 ],
48 {
49 "all": [
50 [
51 4
52 ],
53 [
54 [
55 "_id",
56 "UInt32"
57 ],
58 [
59 "_key",
60 "ShortText"
61 ],
62 [
63 "date",
64 "Time"
65 ],
66 [
67 "tag",
68 "Tags"
69 ]
70 ],
71 [
72 2,
73 "Mroonga is fast!",
74 1463626801.0,
75 "Mroonga"
76 ],
77 [
78 3,
79 "Groonga sticker!",
80 1463626802.0,
81 "Groonga"
82 ]
83 ]
84 }
85 ]
86 ]