world.DatabaseClose

MUSHclient script function (Method) — introduced in version 4.40

Closes an SQLite database

Prototype

long DatabaseClose(BSTR DbName);

Data type meanings

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

Database (SQLite)

See also

FunctionDescription
DatabaseExecExecutes SQL code against an SQLite database
DatabaseFinalizeFinalizes (wraps up) a previously-prepared SQL statement
DatabaseOpenOpens an SQLite database
DatabasePreparePrepares an SQL statement for execution