| ← Previous | ↑ Home | → Next |
Some of the DK tools programs - i.e. [printqd] - need to save data in a hash table. Data is stored in key/value pairs, keys are unique within a hash table. Both key and value are arrays of bytes.
In simple text databases as a special case we use text strings as key and value. When storing strings the terminating 0x00 character is stored with the string. The key string must not contain spaces, the value string can contain spaces.
The program converts text from the specified files or standard input into a simple text database.
Use type::filename to specify databases (Type and file name are separated by two colons). The following type names can be used:
| Type | Database type |
|---|---|
| bdb | Berkeley DB |
| ndbm | NDBM database |
| mem | In-memory database |
This program converts a text file into a simple text database.
The first text word in each line is used as key, the remainder of the line without the newline is the value.
See the [dk-t2db manual] for the full documentation of the program.
| ← Previous | ↑ Home | → Next |
Wiki: Home
Wiki: dk-db2t manual
Wiki: dk-dbco manual
Wiki: dk-t2db manual
Wiki: printqd