Previous Topic

Next Topic

Table count

ctdbGetTableCount() retrieves the number of tables associated with a database, or returns -1 if the database is not connected or if the database handle is invalid.

/* display the number of tables in database */
printf(“Number of tables: %d\n”, ctdbGetTableCount(hDatabase));