File tree Expand file tree Collapse file tree 2 files changed +8
-39
lines changed Expand file tree Collapse file tree 2 files changed +8
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -222,14 +222,16 @@ Module functions
222
222
223
223
.. function :: complete_statement(statement)
224
224
225
- Returns ``True `` if the string *statement * contains one or more complete SQL
226
- statements terminated by semicolons. It does not verify that the SQL is
227
- syntactically correct, only that there are no unclosed string literals and the
228
- statement is terminated by a semicolon.
225
+ Return ``True `` if the string *statement * appears to contain one or more
226
+ complete SQL statements terminated by semicolons.
227
+ No syntactic verification or parsing of any kind is performed.
229
228
230
- This can be used to build a shell for SQLite, as in the following example:
229
+ This function may be useful during command-line input
230
+ to determine if the entered text seems to form a complete SQL statement,
231
+ or if additional input is needed before :meth: `executing <Cursor.execute> `
232
+ the statement.
231
233
232
- .. literalinclude :: ../includes/ sqlite3/complete_statement .py
234
+ See :source: ` Lib/ sqlite3/__main__ .py` for example use.
233
235
234
236
.. function :: enable_callback_tracebacks(flag, /)
235
237
You can’t perform that action at this time.
0 commit comments