File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,14 @@ class SQLite {
265265 // no commits can happen "late" from slow threads that could otherwise write to a DB being shutdown.
266266 void setCommitEnabled (bool enable);
267267
268+ // This gets a set of sqlite3 prepared statements from a query string, to allow for the methods here to be called
269+ // without actually running a query:
270+ // https://www.sqlite.org/c3ref/stmt.html
271+ //
272+ // For instance, you can determine if a query is read-only with this information. This returns a list as it's
273+ // possible that a string contains multiple queries separated by semicolons.
274+ // Note: It's up to the caller to free these prepared statements by calling `sqlite3_finalize()` on them.
275+ // This returns an sqlite error code. It will stop parsing multiple statements after the first error.
268276 int getPreparedStatements (const string& query, list<sqlite3_stmt*>& statements);
269277
270278 private:
You can’t perform that action at this time.
0 commit comments