###User Defined Function###
_SQLite_Close

###Description###
Close an open database.

###Syntax###
#include <SQLite.au3>
_SQLite_Close ( [$hDB = -1] )


###Parameters###
@@ParamTable@@
$hDB
	[optional] Database handle.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	$SQLITE_OK.
Failure:	a value can be compared against $SQLITE_* constants.
@error:	-1 - SQLite reported an error (Check Return value)
	 1 - Error calling SQLite API 'sqlite3_close'
	 2 - Call prevented by SafeMode
@@End@@


###Remarks###
It waits for SQLite &lt;&gt; $SQLITE_BUSY until 'global Timeout' has elapsed.
If no database handle is given, the last opened database will be closed.
Prior to calling <a href="_SQLite_Close.htm">_SQLite_Close()</a>, the application must invoke <a href="_SQLite_QueryFinalize.htm">_SQLite_QueryFinalize()</a> for each query explicitely left unfinalized.


###Related###
_SQLite_Open


###Example###
@@IncludeExample@@
