Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic


Find a table in a database dictionary.


CTDBRET ctdbDECL ctdbFindTableXtd(CTHANDLE Handle, pTEXT Name, pCTDBDICTDATA data)


CTDB dictionary also stores the table owner while searching for a specific table.

Handle [IN] - Database handle

Name [IN] - Table name

data [OUT] - dictionary data for the table

At table open time, set the table owner in the CTHANDLE structure as defined in the dictionary so that this information is available in the table handle itself.

Return Values

Returns CTDBRET_OK on success or the c-tree error code on failure.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

See Also