@@ -308,9 +308,9 @@ Module functions and constants
308
308
float, str or bytes.
309
309
310
310
311
- .. function :: complete_statement(sql )
311
+ .. function :: complete_statement(statement )
312
312
313
- Returns :const: `True ` if the string *sql * contains one or more complete SQL
313
+ Returns :const: `True ` if the string *statement * contains one or more complete SQL
314
314
statements terminated by semicolons. It does not verify that the SQL is
315
315
syntactically correct, only that there are no unclosed string literals and the
316
316
statement is terminated by a semicolon.
@@ -394,11 +394,11 @@ Connection Objects
394
394
:meth: `~Cursor.executescript ` on it with the given *sql_script *.
395
395
Return the new cursor object.
396
396
397
- .. method :: create_function(name, num_params , func, *, deterministic=False)
397
+ .. method :: create_function(name, narg , func, *, deterministic=False)
398
398
399
399
Creates a user-defined function that you can later use from within SQL
400
- statements under the function name *name *. *num_params * is the number of
401
- parameters the function accepts (if *num_params * is -1, the function may
400
+ statements under the function name *name *. *narg * is the number of
401
+ parameters the function accepts (if *narg * is -1, the function may
402
402
take any number of arguments), and *func * is a Python callable that is
403
403
called as the SQL function. If *deterministic * is true, the created function
404
404
is marked as `deterministic <https://sqlite.org/deterministic.html >`_, which
@@ -417,12 +417,12 @@ Connection Objects
417
417
.. literalinclude :: ../includes/sqlite3/md5func.py
418
418
419
419
420
- .. method :: create_aggregate(name, num_params , aggregate_class)
420
+ .. method :: create_aggregate(name, n_arg , aggregate_class)
421
421
422
422
Creates a user-defined aggregate function.
423
423
424
424
The aggregate class must implement a ``step `` method, which accepts the number
425
- of parameters *num_params * (if *num_params * is -1, the function may take
425
+ of parameters *n_arg * (if *n_arg * is -1, the function may take
426
426
any number of arguments), and a ``finalize `` method which will return the
427
427
final result of the aggregate.
428
428
@@ -479,15 +479,15 @@ Connection Objects
479
479
one. All necessary constants are available in the :mod: `sqlite3 ` module.
480
480
481
481
482
- .. method :: set_progress_handler(handler , n)
482
+ .. method :: set_progress_handler(progress_handler , n)
483
483
484
484
This routine registers a callback. The callback is invoked for every *n *
485
485
instructions of the SQLite virtual machine. This is useful if you want to
486
486
get called from SQLite during long-running operations, for example to update
487
487
a GUI.
488
488
489
489
If you want to clear any previously installed progress handler, call the
490
- method with :const: `None ` for *handler *.
490
+ method with :const: `None ` for *progress_handler *.
491
491
492
492
Returning a non-zero value from the handler function will terminate the
493
493
currently executing query and cause it to raise an :exc: `OperationalError `
0 commit comments