Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Creating a database

In this example, the "messages.db" database is being opened with RWC flags, which means that the database will be opened with read and write permissions. This statement will also create the database if it does not already exist.

To create a database connection, use dbc_IFactory_Open.

/* Create the db if it doesn’t already exist */
nResult = dbc_IFactory_Open(piFactory, ‘messages.db’, dbc_CFLG_RWC, &piConnection);