Debian Codegraph @

test/command/suite/wal_recover/db/auto_recovery/column/reference_scalar.test

raw
1 # _database_close/_database_reopen can't use with HTTP because requests via HTTP are always
2 # processed by workers. Workers never use primary WAL role.
3 #@require-interface stdio
4
5 #@require-feature message_pack
6
7 #$GROONGA_ALLOW_DATABASE_REOPEN=yes
8 #$GRN_WAL_ROLE=primary
9
10 table_create Tags TABLE_HASH_KEY ShortText
11
12 table_create Data TABLE_PAT_KEY ShortText
13 column_create Data tag COLUMN_SCALAR Tags
14
15 load --table Data
16 [
17 {"_key": "abc", "tag": "A"},
18 {"_key": "ABC", "tag": "A"},
19 {"_key": "abcdef", "tag": "B"}
20 ]
21
22 delete --table Data --key ABC
23
24 dump
25
26 _database_close
27
28 #@copy-path #{db_path}.0000102 #{db_path}.0000102.wal
29 #@add-important-log-levels notice
30 _database_reopen
31 #@remove-important-log-levels notice
32
33 dump