sqlite_free

mIRC SQLite

sqlite_free
Frees a query result or prepared statement.
Syntax
$sqlite_free ( result )
/sqlite_free result
$sqlite_free ( statement )
/sqlite_free statement
Parameters
result
The result identifier.
statement
The statement identifier.
Return Value
1 if the result was freed successfully, or $null if there was an error.
Remarks
It is usually ok to ignore the return value of $sqlite_free because the only case an error is returned is when an invalid result is specified.
Example
; Selects data from a table and then frees it (unpractical, only shows usage)
var %sql = SELECT * FROM table
var %request = $sqlite_query(%db, %sql)
if (%request) {
  echo -a Query executed succesfully. Freeing data.
  sqlite_free %request
}
else {
  echo -a Error executing query: %sqlite_errstr
}