Product Documentation

FairCom DB 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 FairCom DB API error on failure.

See also

ctdbAllocDatabase(), ctdbFindTableByUID(), ctdbGetActiveTableUID()

TOCIndex