world.DatabaseClose
Closes an SQLite database
Prototype
long DatabaseClose(BSTR DbName);
Description
Closes an existing SQLite database.
DbName - the unique database ID you assigned when opening the database.
Lua example
DatabaseClose ("db") -- close it
Return value
0: Closed OK
-1 : Database id not found
-2 : Database not open
Related topic
See also
| Function | Description |
|---|---|
| DatabaseExec | Executes SQL code against an SQLite database |
| DatabaseFinalize | Finalizes (wraps up) a previously-prepared SQL statement |
| DatabaseOpen | Opens an SQLite database |
| DatabasePrepare | Prepares an SQL statement for execution |