ctdbGetDatabaseHandle
Return the database handle.
Declaration
CTHANDLE ctdbGetDatabaseHandle(CTHANDLE Handle)
Description
ctdbGetDatabaseHandle() returns the database handle. To allocate a database handle, use ctdbAllocDatabase().
Returns
ctdbGetDatabaseHandle() returns the database handle or NULL on failure.
Example
db_name = ctdbGetDatabaseName(ctdbGetDatabaseHandle(hTable));
See also
ctdbAllocDatabase(), ctdbGetSessionHandle(), ctdbGetTableHandle()