NAME
dbset - set database parameters
SYNOPSIS
#include "db.h" ;
int dbset(Dbptr db, int code, void *value)
DESCRIPTION
dbset allows setting certain parameters in the
db library.
The parameters which may be set are indicated by their
code, and
are the following:
-
dbSCHEMA_DEFAULT
Initially, the default schema, used when no database description file
is present is css3.0. You may change this to something else,
e.g., css2.8 or css3.5.
Alternatively, you can set the environment variable SCHEMA_DEFAULT.
-
dbDBMATCHES_UPDATE_INDEX
It's possible to suppress the updating of an index inside dbmatches(3)
by calling dbset:
dbset(db, dbMATCHES_UPDATE_INDEX, 0 ) ;
RETURN VALUES
Returns dbINVALID in the event of an error, normally returns 0.
LIBRARY
$(DBLIBS)
SEE ALSO
dbintro(3)
antelopeenv(5)
AUTHOR
Daniel Quinlan