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)
18 db iddata(&cdbtcl_databases)
22 db iddata(&cdbtcl_databases)
24 Table cdbwr Cdbwr_SubCommand
32 # <pathb>.tmp (might be new .main or new .cdb)
34 # .lock is an empty file
35 # which is locked with fcntl by open
36 # .main is a cdb native text file
38 # .cdb is a cdb database containing data
39 # equivalent to and at least as recent as .main
40 # (maybe not identical, because .cdb may
41 # have been updated with data from .log but
42 # .main not yet); if .log does not exist then
44 # .cdb may not exist; in which case it is to
45 # be treated as if it existed and was empty
46 # but this is maximally early (so main must
47 # exist and be empty since .main is never
49 # if .log exists, it is a cdb native
50 # text file _without the trailing newline_;
51 # its contents override values from .main or .cdb
52 # if .main.tmp or .cdb.tmp exists it is irrelevant
53 # zero length values mean record is deleted (in .log only;
54 # forbidden elsewhere)
57 # .log and open hash table contain same info
62 # on_lexminval present and not empty list: provides a
63 # script which returns the current lexminval. In
64 # this case, occasionally,
65 # on_lexminval will be called and then entries whose
66 # value is lexically strictly less than lexminval
67 # will be deleted automatically. The comparison
68 # is bytewise on the UTF-8 representations.
69 => iddata(&cdbtcl_rwdatabases)
70 open-okjunk RWSCF_OKJUNK
74 => iddata(&cdbtcl_rwdatabases)
75 # on_info <event> <xinfo>...:
76 # on_info open-clean <statistics-info-string>
77 # on_info open-dirty-start <statistics-info-string>
78 # on_info open-dirty-junk <problem-info-string> \
79 # <problem-error-code-list>
80 # on_info open-dirty-done <statistics-info-string>
81 # on_info compact-start <statistics-info-string>
82 # on_info compact-done <statistics-info-string>
83 # on_info close <statistics-info-string>
85 db iddata(&cdbtcl_rwdatabases)
90 db iddata(&cdbtcl_rwdatabases)
95 db iddata(&cdbtcl_rwdatabases)
98 db iddata(&cdbtcl_rwdatabases)
102 db iddata(&cdbtcl_rwdatabases)
106 db iddata(&cdbtcl_rwdatabases)
108 db iddata(&cdbtcl_rwdatabases)
110 # this is the default
111 db iddata(&cdbtcl_rwdatabases)
113 db iddata(&cdbtcl_rwdatabases)
115 db iddata(&cdbtcl_rwdatabases)
117 EntryExtra Cdbwr_SubCommand