conn
is the connection descriptor, as returned by mi_server_connect(), and must not be an open (logged-in) connection.
The conn value specifies the database server on which to create the database. A NULL value specifies the default database server.
dbinfo
describes the new database.
dbspace
is the storage location for the new database. A NULL value specifies the root dbspace.
flag
is one of the following options:
MI_DBCREATE_DEFAULT
Create the database without logging.
MI_DBCREATE_LOG
Create the database with a log.
MI_DBCREATE_LOG_BUFFERED
Create the database with a buffered log.
MI_DBCREATE_LOG_ANSI
Create the database with ANSI log mode.
Yes
No
This call is equivalent to the SQL CREATE DATABASE statement. Part of the argument dbinfo specifies the database name.
On entry, there must be no logged-in database active on the given connection.
MI_OK
The new database exists.
MI_ERROR
An exception was raised, and the database was not created.