sqlite_close

mIRC SQLite

sqlite_close
Closes an open SQLite database connection.
Syntax
$sqlite_close ( conn )
/sqlite_close conn
Parameters
conn
The connection identifier.
Return Value
1 if connection was closed successfully, or $null if there was an error.
Remarks
It is usually ok to ignore the return value of $sqlite_close because the only case an error is returned is when an invalid conn is specified.
Example
; Opens a database and displays the status after. Closes the db if it was opened successfully.
var %db = $sqlite_open(test.db)
if (%db) {
  echo -a Database opened successfully.
  sqlite_close %db
}
else {
  echo -a Error opening database: %sqlite_errstr
}
See Also
sqlite_open