Previous Topic

Next Topic

Database name

Once the database handle is connected, the database name can be retrieved by calling ctdbGetDatabaseName(). ctdbGetDatabaseName() returns NULL if the database handle is not connected or the database handle is invalid.

/* display the database name */
printf(“Database: %s\n”, ctdbGetDatabaseName(hDatabase));