Es sql close

From EventScripts Community Encyclopedia


Overview

Syntax: es_sql close <db-name>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xsql close

Description

Closes and flushes the database data to disk.

Parameters

  • db-name - The name of the database to close


Examples

See the ServerMail example in ES v1.5 for a detailed example.

// open a SQLite database file
es_sql open mydb |myscriptdir
// other es_sql query commands
// ...
es_sql close mydb


Notes

  • In order to use the database again, you need to es_sql open it.
  • Requires EventScripts v1.5.


See also

blog comments powered by Disqus