Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbGetDatabaseHandle

Return the database handle.

Declaration

CTHANDLE ctdbGetDatabaseHandle(CTHANDLE Handle)

Description

ctdbGetDatabaseHandle() returns the database handle. To allocate a database handle, use ctdbAllocDatabase().

  • Handle [in] may be a table handle, a record handle, a field handle, an index handle, or a segment handle.

Returns

ctdbGetDatabaseHandle() returns the database handle or NULL on failure.

Example


db_name = ctdbGetDatabaseName(ctdbGetDatabaseHandle(hTable));


See also

ctdbAllocDatabase(), ctdbGetSessionHandle(), ctdbGetTableHandle()

TOCIndex