ctdbOpenTableByUID
Open an existing table, given its UID.
Declaration
CTDBRET ctdbOpenTableByUID(CTHANDLE Handle, ULONG uid,
CTOPEN_MODE OpenMode)
Description
ctdbOpenTableByUID() opens an existing table, given its unique identifier. The database that contains the table was specified previously, when table handle ‘Handle’ was allocated. c-treeDB API will look for the table and index files in the server directory (client/server applications) or in the execution directory (standalone applications).
To override this default directory, specify your own directory with ctdbSetTablePath() before you call this function.
To open a table that is protected with a password, call ctdbSetTablePassword() with Handle before you call this function.
To open the table given its name, use ctdbOpenTable(). To create a table, use ctdbCreateTable(). To retrieve the table open mode, use ctdbGetTableOpenMode(). To close an open table, use ctdbCloseTable().
Returns
ctdbOpenTableByUID() returns CTDBRET_OK on success, or c-treeDB API error on failure.
See also
ctdbAllocTable(), ctdbCreateTable(), ctdbGetTableOpenMode(), ctdbCloseTable(), ctdbOpenTable()