DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dbCreateDatabase(3dba)


dbCreateDatabase -- create an EELS database

Synopsis

cc [flag ...] file ... -kthread -leels [library] ...
#include <eelsdba.h>

int dbCreateDatabase(char *name, char *description, char *creator;

Description

dbCreateDatabase creates a database that EELS will use to store event records. When the database is created, an Event Table is also created, and an entry is added to the Database List Table in the EELS Administrative Database (EELS_Admin). The Event Table contains a record for each event that is logged to the log database. The Database List Table contains the list of databases and tables that EELS is currently using.

Arguments


name
(Input) The name of the database to be created.

description
(Input) A description of the database's purpose.

creator
(Input) The name of the user who created the database.

Return values

dbCreateDatabase returns 0 if successful. Otherwise, it returns -1.

Diagnostics

An application can call dbGetError(3dba) to obtain the error message returned from the database.

References

dbDeleteDatabase(3dba), dbGetError(3dba), dbListDatabases(3dba), Intro(3dba)


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004