1 Table *cdbtoplevel TopLevel_Command
3 subcmd enum(Cdb/_SubCommand, "cdb subcommand")
6 subcmd enum(Cdbwr/_SubCommand, "cdb-wr subcommand")
9 Table cdb Cdb_SubCommand
12 => iddata(&cdbtcl_databases)
14 db iddata(&cdbtcl_databases)
19 db iddata(&cdbtcl_databases)
24 db iddata(&cdbtcl_databases)
26 Table cdbwr Cdbwr_SubCommand
34 # <pathb>.tmp (might be new .main or new .cdb)
36 # .lock is an empty file
37 # which is locked with fcntl by open
38 # .main is a cdb native text file
40 # .cdb is a cdb database containing data
41 # equivalent to and at least as recent as .main
42 # (maybe not identical, because .cdb may
43 # have been updated with data from .log but
44 # .main not yet); if .log does not exist then
46 # .cdb may not exist; in which case it is to
47 # be treated as if it existed and was empty
48 # but this is maximally early (so main must
49 # exist and be empty since .main is never
51 # if .log exists, it is a cdb native
52 # text file _without the trailing newline_;
53 # its contents override values from .main or .cdb
54 # if .main.tmp or .cdb.tmp exists it is irrelevant
55 # zero length values mean record is deleted (in .log only;
56 # forbidden elsewhere)
59 # .log and open hash table contain same info
64 # on_lexminval present and not empty list: provides a
65 # script which returns the current lexminval. In
66 # this case, occasionally,
67 # on_lexminval will be called and then entries whose
68 # value is lexically strictly less than lexminval
69 # will be deleted automatically. The comparison
70 # is bytewise on the UTF-8 representations.
71 => iddata(&cdbtcl_rwdatabases)
72 open-okjunk RWSCF_OKJUNK
76 => iddata(&cdbtcl_rwdatabases)
77 # on_info <event> <xinfo>...:
78 # on_info open-clean <statistics-info-string>
79 # on_info open-dirty-start <statistics-info-string>
80 # on_info open-dirty-junk <problem-info-string> \
81 # <problem-error-code-list>
82 # on_info open-dirty-done <statistics-info-string>
83 # on_info compact-start <statistics-info-string>
84 # on_info compact-done <statistics-info-string>
85 # on_info close <statistics-info-string>
87 db iddata(&cdbtcl_rwdatabases)
92 db iddata(&cdbtcl_rwdatabases)
97 db iddata(&cdbtcl_rwdatabases)
100 db iddata(&cdbtcl_rwdatabases)
104 db iddata(&cdbtcl_rwdatabases)
108 db iddata(&cdbtcl_rwdatabases)
110 db iddata(&cdbtcl_rwdatabases)
112 # this is the default
113 db iddata(&cdbtcl_rwdatabases)
115 db iddata(&cdbtcl_rwdatabases)
117 db iddata(&cdbtcl_rwdatabases)
119 EntryExtra Cdbwr_SubCommand