Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.DatabaseClose


Name DatabaseClose
Type Method
Summary 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.


Note: Available in version 4.40 onwards.


Lua example
DatabaseClose ("db")  -- close it
Returns 0: Closed OK
-1 : Database id not found
-2 : Database not open
Introduced in version 4.40

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

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.