4.3.69 ctdbDeleteTable
Drop a table from a database and delete table from disk.
Declaration
CTDBRET ctdbDeleteTable(CTHANDLE Handle, pTEXT TableName, pTEXT Password)Description
ctdbDeleteTable drops the table from the database and deletes the table from disk. This function should be used with care, since it will remove from disk the data and index file(s) associated with the given name.
Use ctdbAddTable to add a table to a database. Use ctdbDropTable to drop the table from the database, but do not delete the table files from disk.
Returns
ctdbDeleteTable returns CTDBRET_OK on success, or the c-tree Plus error code on failure.
Example
eRet=ctdbConnect(hDatabase, database_name);eRet = ctdbDeleteTable(hDatabase, table_name, NULL);See also
ctdbAddTable, ctdbDropTable, ctdbAllocDatabase
|
FairCom Corporation www.faircom.com |