saveTable#
- swordfish.function.saveTable()#
Save a table to an unpartitioned disk table. It must be executed by a logged-in user.
To save a table to a partitioned database, use createPartitionedTable together with append_ or tableInsert.
Note
Disk tables are only used for backup or local computing. Unlike the DFS tables, disk tables do not support access control.n
- Parameters:
dbHandle (Constant) – A DolphinDB database handle.
table (Constant) – The table in memory to be saved.
tableName (Constant, optional) – Aa string indicating the desired name for the saved table, by default DFLT.
append (Constant, optional) – The appending mode, by default DFLT. When it is set to true, the new table will be appended to the old table.
compression (Constant, optional) – The compression mode. When it is set to true, the table will be saved to disk in compression mode, by default DFLT.