1TKRZW_DBM_UTIL(1)                User Commands               TKRZW_DBM_UTIL(1)
2
3
4

NAME

6       tkrzw_dbm_util - manual page for tkrzw_dbm_util 0.9.3
7

DESCRIPTION

9       tkrzw_dbm_util: DBM utilities of Tkrzw
10
11   Usage:
12              tkrzw_dbm_util    create    [common_options]    [tuning_options]
13              [options] file
14
15              : Creates a database file.
16
17              tkrzw_dbm_util inspect [common_options] file
18
19              : Prints inspection of a database file.
20
21              tkrzw_dbm_util get [common_options] file key
22
23              : Gets a record and prints it.
24
25              tkrzw_dbm_util set [common_options] [options] file key
26
27              : Sets a record.
28
29              tkrzw_dbm_util remove [common_options] file key
30
31              : Removes a record.
32
33              tkrzw_dbm_util list [common_options] file
34
35              : Lists up records and prints them.
36
37              tkrzw_dbm_util rebuild [common_options] [tuning_options] file
38
39              : Rebuilds a database file for optimization.
40
41              tkrzw_dbm_util restore [common_options] old_file new_file
42
43              : Restores a broken database file.
44
45              tkrzw_dbm_util merge [common_options] dest_file src_files...
46
47              : Merges database files.
48
49              tkrzw_dbm_util  export   [common_options]   [options]   dbm_file
50              rec_file
51
52              : Exports records to a flat record file.
53
54              tkrzw_dbm_util   import   [common_options]   [options]  dbm_file
55              rec_file
56
57              : Imports records from a flat record file.
58
59   Common options:
60       --dbm impl : The name of a DBM implementation: auto, hash, tree,  skip,
61              tiny,  baby,  cache,  stdhash,  stdtree,  poly, shard. (default:
62              auto)
63
64       --file impl : The name of a file implementation: mmap-para,  mmap-atom,
65              pos-para, pos-atom. (default: mmap-para)
66
67       --no_wait : Fails if the file is locked by another process.
68
69       --no_lock : Omits file locking.
70
71   Options for the create subcommand:
72       --truncate : Truncates an existing database file.
73
74   Options for the set subcommand:
75       --no_overwrite : Fails if there's an existing record wit the same key.
76
77       --reducer  func  : Sets the reducer for the skip database: none, first,
78              second, last, concat, concatnull, concattab, concatline,  total.
79              (default: none)
80
81   Options for the list subcommand:
82       --jump pattern : Jumps to the position of the pattern.
83
84       --items num : The number of items to print.
85
86   Options for the rebuild subcommand:
87       --restore : Skips broken records to restore a broken database.
88
89   Options for the restore subcommand:
90       --end_offset  :  The exclusive end offset of records to read. (default:
91              -1)
92
93   Options for the merge subcommand:
94       --reducer func : Sets the reducer for the skip database:  none,  first,
95              second,  last, concat, concatnull, concattab, concatline, total.
96              (default: none)
97
98   Options for the export and import subcommands:
99       --tsv : The record file is in TSV format instead of flat record.
100
101       --escape : C-style escape/unescape is applied to the TSV data.
102
103       --keys : Exports keys only.
104
105   Tuning options for HashDBM:
106       --in_place : Uses in-place rather than pre-defined ones.
107
108       --append : Uses appending rather than pre-defined ones.
109
110       --offset_width num : The width to  represent  the  offset  of  records.
111              (default: 4 or -1)
112
113       --align_pow num : Sets the power to align records. (default: 3 or -1)
114
115       --buckets  num  :  Sets  the  number  of buckets for hashing. (default:
116              1048583 or -1)
117
118   Tuning options for TreeDBM:
119       --in_place : Uses in-place rather than pre-defined ones.
120
121       --append : Uses appending rather than pre-defined ones.
122
123       --offset_width num : The width to  represent  the  offset  of  records.
124              (default: 4 or -1)
125
126       --align_pow num : Sets the power to align records. (default: 10 or -1)
127
128       --buckets  num  :  Sets  the  number  of buckets for hashing. (default:
129              131101 or -1)
130
131       --max_page_size num : Sets the maximum size of a page.  (default:  8130
132              or -1)
133
134       --max_branches  num  :  Sets  the  maximum  number of branches of inner
135              nodes. (default: 256 or -1)
136
137       --comparator func : Sets the key comparator: lex,  lexcase,  dec,  hex.
138              (default: lex)
139
140   Tuning options for SkipDBM:
141       --offset_width  num  :  The  width  to represent the offset of records.
142              (default: 4)
143
144       --step_unit num : Sets the step unit of the skip list. (default: 4)
145
146       --max_level num : Sets the maximum level of the  skip  list.  (default:
147              14)
148
149       --sort_mem_size  num : Sets the memory size used for sorting. (default:
150              268435456)
151
152       --insert_in_order : Inserts records in ascending  order  order  of  the
153              key.
154
155   Options for PolyDBM and ShardDBM:
156       --params str : Sets the parameters in "key=value,key=value" format.
157
158
159
160tkrzw_dbm_util 0.9.3             January 2021                TKRZW_DBM_UTIL(1)
Impressum