Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic


Retrieve the table open mode.


CTOPEN_MODE ctdbGetTableOpenMode(CTHANDLE Handle)


ctdbGetTableOpenMode() retrieves the table open mode. Notice that a few modes are used when a file is created and cannot be changed after that. Two such modes are ctFIXED and VLENGTH, since it is not possible to change a file from fixed to variable length after its creation. Other values like EXCLUSIVE or SHARED may be changed after the table creation. To retrieve the table creation mode, use ctdbGetTableCreateMode(). To open a table, use ctdbOpenTable().

  • Handle [in] the Table Handle.

The valid values for the table open mode are listed in c-treeDB definitions.


ctdbGetTableOpenMode() returns the table open mode.

See also

ctdbAllocTable(), ctdbOpenTable()