###User Defined Function###
_SQLite_SetTimeout

###Description###
Sets timeout for busy handler

###Syntax###
#include <SQLite.au3>
_SQLite_SetTimeout ( [$hDB = -1 [, $iTimeout = 1000]] )


###Parameters###
@@ParamTable@@
$hDB
	[optional] An open database, use -1 to use last opened database
$iTimeout
	[optional] Timeout [msec]
@@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_busy_timeout'
	2 - Call prevented by SafeMode
@@End@@


###Remarks###
This routine sets a busy handler that sleeps for a while when a table is locked. The handler will sleep multiple times until at least "ms" milliseconds of sleeping have been done. After "ms" milliseconds of sleeping, the handler returns 0 which causes sqlite3_exec() to return $SQLITE_BUSY.


###Related###
_SQLite_Query


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