CDB(1) | General Commands Manual | CDB(1) |
cdb
— constant
database
cdb |
-cds file |
cdb |
[-n num]
-q key file |
cdb
utility queries, dumps, analyzes and creates cdb
(constant databases) files.
The create mode reads a series of encoded records from the standard input and creates a database (in cdb(5) format) on a temporary file and atomically rename it to file.
The dump mode reads the given database and writes to the standard output each key and data.
The query mode reads the given database and writes to the standard output each found key.
The stats mode reads the given database and writes to the standard output a summary with the number of records and the number of records at n distance from their hash.
When dealing with input (create mode) or output (dump mode) the records are encoded in the following way:
klen,dlen:key->data
The cdb
utility exits 0 on success,
and >0 if an error occurs.
July 28, 2021 | EltaninOS |