pub fn ydb_exit() -> c_int
Expand description
Cleans up the process connection/access to all databases and all yottadb data structures.
If you have already made a call to YottaDB, any future calls to YottaDB after calling yottadb::ydb_exit()
will return YDBError { status: YDB_ERR_CALLINAFTERXIT }
.
If you have never before made a call to YottaDB, exit()
has no effect.
A typical application should not need to call yottadb::ydb_exit()
since YottaDB will automatically clean up on process termination.
This has no effect on any Key
s, which will be automatically dropped when they go out of scope.
§Errors
YDB_ERR_INVYDBEXIT
ifydb_exit()
is called through M FFI (e.g. throughci_t
)
Possible errors for this function include:
§Example
yottadb::ydb_exit();