• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

NAME

dbcreate, dbtmp - create new database descriptor or new temporary database

SYNOPSIS

#include "db.h" ;

int dbcreate(char *filename, char *schema,
                 char *dbpath, char *description,
                 char *detail, char *dblocks,
                 char *dbidserver)

Dbptr dbtmp(char *schema)

DESCRIPTION

dbcreate creates a new database descriptor file with the specified filename and schema. If the dbpath parameter is not null or a null string, the database path is specified as dbpath. The description and detail parameters also end up in the database descriptor parameter file under description and detail. If the dblocks parameter is not null or a null string, the dblocks parameter is specified as given. If the dbidserver parameter is not null or a null string, the dbidserver parameter is specified as given.

dbtmp returns a database pointer to a temporary database. Typically, no records are actually written to this database, but it's convenient for formatting database records.

RETURN VALUES

dbcreate returns 0 for success, otherwise some error occurred. dbtmp returns a database pointer, which is composed of all dbINVALID values if any error occurred.

LIBRARY

$(DBLIBS)

SEE ALSO

dbinvalid(3)

AUTHOR

Daniel Quinlan
Printer icon