saveDatabase

Syntax

saveDatabase(dbHandle)

Arguments

dbHandle is a DolphinDB database handle.

Details

Save a database handle. It must be executed by a logged-in user. It is used with the database function.

After we create a database for the first time, we can save the database with the command saveDatabase. If the database location is a folder that already contains DolphinDB table related files, then function database reopens a previously created database, and there is no need to use the saveDatabase command to save it.

Examples

db=database("C:/DolphinDB/")
saveDatabase(db);