Binds parameters to a prepared statement, and
resets the
statement when the callback completes, even in the presence of
exceptions.
Use
withBind to reuse prepared statements. Because it
resets the statement
after each usage, it avoids a
pitfall involving implicit transactions. SQLite creates an implicit
transaction if you don't say
BEGIN explicitly, and does not
commit it until all active statements are finished with either
reset or
closeStatement.