Next: Byte Array Data Functions, Previous: Database Functions, Up: Top [Index]
void db_clear(table t);
clears the t table (removes all keys and their associated data).
table db_keep(table t, database db, text name); table db_keep2(table t, database db, text name, integer inner, integer outer);
are t, open t for the db table indicated by the 8 characters long name.
If t already refers a data store table, it is closed first.
inner and outer are hints for the internal, respectively external node sizes of the b-trees backing newly created tables. Data is stored exclusively in external nodes. The numbers are adjusted to fit the database organization purposes. For nonblonde stores, they only determine the size of the fixed navigational part of the nodes, with the total node size depending also on the stored data.
void db_leave(table t);
closes the t table. The function has no other effect beyond t stopping to refer a data store table.
void db_rename(table t, text name);
is t, renamed as name.
table table(void);
is a new table