Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetTableUID

Retrieve the table Unique Identifier given a database handle and a table name.

Declaration

CTDBRET ctdbGetTableUID(CTHANDLE Handle, pTEXT Name, pULONG puid)

Description

ctdbGetTableUID() retrieves the table unique identifier, UID, given the table name. Use ctdbGetActiveTableUID() to retrieve the table UID, given the Table Handle. Use ctdbFindTableByUID() to locate a table in a database by its unique identifier.

  • Handle [in] the Database Handle.
  • Name [in] the table name.
  • puid [out] the table unique identifier.

Returns

ctdbGetTableUID() returns CTDBRET_OK on success, or c-treeDB API error on failure.

See also

ctdbAllocDatabase(), ctdbFindTableByUID(), ctdbGetActiveTableUID()

TOCIndex