Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbMoveTable

Move a table and its associated index files.

Declaration

CTDBRET ctdbDECL ctdbMoveTable(CTHANDLE Handle, pTEXT oldname, pTEXT newpath, pTEXT newname);

Description

Allows renaming a table and/or "renaming" the path (i.e., using "rename" to move the file to a different location, as is common in Operating System commands and c-tree RENIFIL).

  • Handle [IN] - Database handle
  • oldname [IN] - Old table name
  • newpath [IN] - New table path
  • newname [IN] - New table name

Setting newname or newpath to NULL indicates that the name or the path respectively do not change.

Returns

Return CTDBRET_OK on success.

TOCIndex