Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetDatabasePath

Return the database path.

Declaration

pTEXT ctdbGetDatabasePath(CTHANDLE Handle)

Description

ctdbGetDatabasePath() returns the database path. Note that the database path is set with ctdbCreateDatabase() as part of the database creation process. If no path was specified when the database was created (so the database was created in the default location), then ctdbGetDatabasePath() is likely to return an empty string.

  • Handle [in] the Database Handle.

Records

ctdbGetDatabasePath() returns the database path, or NULL if no database path is available.

Example


eRet=ctdbConnect(hDatabase, "myDatabase", "");

db_path=ctdbGetDatabasePath(hDatabase);

See also

ctdbAllocDatabase(), ctdbGetDatabaseName()

TOCIndex