FairCom Corporation


4.3.77 ctdbDropDatabase


Drop a database from a session dictionary. The data and index files are not deleted from disk.

Declaration

CTDBRET ctdbDropDatabase(CTHANDLE Handle, pTEXT Name)

Description

ctdbDropDatabase drops the database from the session dictionary, but does not delete the database file and index.

Use ctdbAddDatabase to add a database to a session. Use ctdbDeleteDatabase to drop the database from the session and delete the database file and index.

Returns

ctdbDropDatabase returns CTDBRET_OK on success, or the c-tree Plus error code on failure.

Example

eRet = ctdbLogon(hSession, "FAIRCOMS", "ADMIN", "ADMIN");
eRet = ctdbDropDatabase(hSession, database_name);

See also

ctdbAllocSession, ctdbAddDatabase, ctdbDeleteDatabase


FairCom Corporation
www.faircom.com