An Embeddable NoSQL Database Engine |
Tweet |
Follow @unqlite_db |
UnQLite C/C++ API Reference - Database Engine Handle.
Closing a database handle.
Description
The unqlite_close() routine is the destructor for the unqlite handle. Calls to unqlite_close() return UNQLITE_OK if the unqlite object is successfully destroyed and all associated resources are deallocated.
Parameters
pDb
|
A pointer to a unQLite Database Handle. |
Return value
UNQLITE_BUSY: Another thread or process have an exclusive lock on the database. In this case, the caller should wait until the lock holder relinquish it.
UNQLITE_IOERR: OS specific error.
UNQLITE_ABORT: Another thread have released the database handle.
For a human-readable error message, you can extract the database error log via unqlite_config() with a configuration verb set to UNQLITE_CONFIG_ERR_LOG.
See also