Closed lun-4 closed 2 years ago
Hi,
sorry it took me a while to get to this PR. I like this feature but I think the function should be named execMulti
instead since no other function use the name "run".
Also, can you please rebase so it can be merged ? Thank you !
This PR adds
Db.runMulti()
, which wraps statement prepare/execution in a loop so that it can process multiple statements from a single query string. SQLite enables this to happen via thepzTail
argument insqlite_prepare
family of functions.If this function is not welcome, this PR can be reduced to only enabling
pzTail
usage throughQueryOptions
, since with that the logic ofrunMulti
can be moved over to library users.