Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbLogout

Logout from a FairCom Server session or from a FairCom DB instance.

Declaration

CTDBRET ctdbLogout(CTHANDLE Handle)

Description

ctdbLogout() logs out from the c-tree Server or FairCom DB instance.

  • Handle [in] the session handle.

Returns

ctdbLogout() returns CTDBRET_OK on success or FairCom DB API error code on failure.

Example


CTSESSION_TYPE ctdbsess=CTSESSION_CTDB;

CTHANDLE hSession = ctdbAllocSession(ctdbsess);

CTDBRET err;

err = ctdbLogon(hSession, "FAIRCOMS", "ADMIN", "ADMIN");

err = ctdbCreateDatabase(hSession, "MyDatabase", "");

err = ctdbLogout(hSession);

ctdbFreeSession(hSession);


See also

ctdbLogon(), ctdbAllocSession()

TOCIndex