Extract a database field descriptor line
from a database file.
Procedure to build a generic database. Can handle a
build from a metadatabase (*.mdb), a regular database (*.db), or
a serialized database (*.tcl).
Procedure to read a generic metadatabase file
containing metadatabase and main codatabase record attributes
lines, comments, and a set of record bundles for the main and
auxiliary codatabases. The main codatabase namespace must have
already been opened with openDb or with some equivalent ad hoc
procedure. The pathname rootname of the file (all but the
extension) must be already defined in the dbFile file variable
of the namespace. An extension of .mdb will be assumed.
The auxiliary codatabases will be opened. The
Print current state of DESC array.
Read a simple general database file containing a record
attributes line, comments, and a set of records. The material
read is inserted in a database namespace. The namespace must
already have been opened with openDb or by some equivalent ad hoc
procedure. The pathname rootname of the file (all but extension)
must be already defined in the dbFile variable of the namespace.
An extension of .db will be assumed.
1) Create a mapping from the concatenated key fields of a record
to the concatenated attribute fields.
2) Augment the mapping to produce mappings from the concatenated
keys comma the attribute field name to the attribute field value for
each attribute in each record.
- If there is a key field named auto, it is not specified in the
record, but an automatically generated index number (0, 1, 2, ...)
should be supplied for it.
- If there is non-key field called auto, it, too, is not specified in
the record, but an automatically generated index number (0, 1, 2, ...)
should be supplied for it.
- If there is a field named tag, it contains a unique identifier that
serves as a name for that record. Define that tag with setTag.
Given the attribute line for a database,
initialize the open database namespace.
Process a database namespace $dbNS to produce a
database *.db file.
Process database record input format to produce
entries in DB.
Process metadatabase corecord of type const to produce
a const entry in main codatabase.
Text read procedure: Reads text regions from a file.
Each region is delimited by a key value that corresponds to a key
from another database
Procedure to extract fields from list with separators
Leading and trailing white space is stripped from each element
Derive the namespace of a database from the pathname by
computing the tail of the root of the pathname.
Instantiate a database namespace.
Serialize a database namespace.
Given a database namespace, a key, and a field,
set the value of that field.
Given a database namespace, a key, and a field,
return the value of that field.
Given a database namespace, a key, and a field,
determine if the field exists.
Print current state of DB array.
Print current state of database.
Given a database namespace, a tag, and a key,
map that tag to that key.
A tag is a predefined name equivalent to some key,
usually a key that depends on autoindexing for its value.
Given a database namespace and a tag,
return the key referenced by that tag.
A tag is a predefined name equivalent to some key,
usually a key that depends on autoindexing for its value.
Create an array TAG2KEY that maps tag values to keys, i.e.,
[getDbVal $dbNS TAG2KEY($tag) $attrName]
is the value of the field $attrName of the record named $tag.
Given a database namespace and a tag name,
determine if the tag is defined for the database.
A tag is a predefined name equivalent to some key,
usually a key that depends on autoindexing for its value.
Print current state of TAG2KEY array.
Convert $key to list of key attribute values.
Make a key from a list of key attributes.