chickadee » sql-de-lite » prepare

prepare db sqlprocedure

Looks up a prepared statement in the statement cache. If not found, it prepares a new statement. Returns a statement object.

Preparing a SQL statement consisting entirely of whitespace or comment is an error as of 0.5.0.

Returns a #<sqlite-statement> object.

Note. Prior to 0.7.0, an exception was thrown if a statement we pulled from cache is currently running. Statements are no longer cached while running.