Debian Codegraph @

test/command/suite/column_create/vector/source/offline/generator_scalar.expected

raw
1 table_create Notes TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Notes title_html COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 load --table Notes
6 [
7 {"title_html": "Hello <em>Groonga</em>"},
8 {"title_html": "<i>Hello</i> <em>Mroonga</em>"}
9 ]
10 [[0,0.0,0.0],2]
11 column_create Notes title_text COLUMN_SCALAR ShortText title_html --generator 'html_untag(title_html)'
12 [[0,0.0,0.0],true]
13 select Notes --output_columns title_html,title_text
14 [
15 [
16 0,
17 0.0,
18 0.0
19 ],
20 [
21 [
22 [
23 2
24 ],
25 [
26 [
27 "title_html",
28 "ShortText"
29 ],
30 [
31 "title_text",
32 "ShortText"
33 ]
34 ],
35 [
36 "Hello <em>Groonga</em>",
37 "Hello Groonga"
38 ],
39 [
40 "<i>Hello</i> <em>Mroonga</em>",
41 "Hello Mroonga"
42 ]
43 ]
44 ]
45 ]
46 dump
47 table_create Notes TABLE_NO_KEY
48 column_create Notes title_html COLUMN_SCALAR ShortText
49 column_create Notes title_text COLUMN_SCALAR ShortText title_html --generator "html_untag(title_html)"
50
51 load --table Notes
52 [
53 ["_id","title_html"],
54 [1,"Hello <em>Groonga</em>"],
55 [2,"<i>Hello</i> <em>Mroonga</em>"]
56 ]