###User Defined Function###
_SQLite_Query

###Description###
Prepares a SQLite Query

###Syntax###
#include <SQLite.au3>
_SQLite_Query ( $hDB, $sSQL, ByRef $hQuery )


###Parameters###
@@ParamTable@@
$hDB
	An open database, use -1 to use last opened database
$sSQL
	SQL statement to be executed
$hQuery
	Passes out a query handle
@@End@@

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


###Remarks###
None.


###Related###
_SQLite_FetchData, _SQLite_FetchNames, _SQLite_Exec, _SQLite_GetTable, _SQLite_GetTable2d, _SQLite_QueryFinalize, _SQLite_QueryReset, _SQLite_QuerySingleRow, _SQLite_SetTimeout


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