URL: http://www.firstbasesoftware.com/man/man3/openidx.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[
Index of Contents] [
FirstBase RDBMS Overview]
fb_openidx(iname, db)
char *iname;
fb_database *db;
fb_closeidx(db)
fb_database *db;
fb_createidx(iname, db)
char *iname;
fb_database *db;
Fb_openidx will initialize the index portion of database structure db using iname as the index name. Since opendb(3) can initialize an index also, openidx(3) is used mainly to switch indexes on an already opened database.
To properly close a database index, use fb_closeidx. This routine will close the file descriptors associated with an index. Note that fb_closedb does this as well, so specifically closing the index needs doing only when looping through many fb_openidx calls.
The fb_createidx routine will create an index, either a Btree index or a Flat index. All needed files will be created and initialized, but the index will not be opened.