Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetTableCount

Retrieve the number of tables in the database dictionary.

Declaration

NINT ctdbGetTableCount(CTHANDLE Handle)

Description

ctdbGetTableCount() returns the number of tables in the database dictionary that is connected to the specified handle. Note that databases which were created in a CTSESSION_SQL-mode session will automatically have several dozen system tables, in addition to any tables that were added by client applications.

  • Handle [in] the Database Handle.

Returns

ctdbGetTableCount() returns the number of tables in the database dictionary, or -1 on error.

See also

ctdbGetDatabaseCount()

TOCIndex