@@ -336,9 +336,9 @@ Module functions and constants
336
336
float, str or bytes.
337
337
338
338
339
- .. function :: complete_statement(sql )
339
+ .. function :: complete_statement(statement )
340
340
341
- Returns :const: `True ` if the string *sql * contains one or more complete SQL
341
+ Returns :const: `True ` if the string *statement * contains one or more complete SQL
342
342
statements terminated by semicolons. It does not verify that the SQL is
343
343
syntactically correct, only that there are no unclosed string literals and the
344
344
statement is terminated by a semicolon.
@@ -457,11 +457,11 @@ Connection Objects
457
457
:meth: `~Cursor.executescript ` on it with the given *sql_script *.
458
458
Return the new cursor object.
459
459
460
- .. method :: create_function(name, num_params , func, *, deterministic=False)
460
+ .. method :: create_function(name, narg , func, *, deterministic=False)
461
461
462
462
Creates a user-defined function that you can later use from within SQL
463
- statements under the function name *name *. *num_params * is the number of
464
- parameters the function accepts (if *num_params * is -1, the function may
463
+ statements under the function name *name *. *narg * is the number of
464
+ parameters the function accepts (if *narg * is -1, the function may
465
465
take any number of arguments), and *func * is a Python callable that is
466
466
called as the SQL function. If *deterministic * is true, the created function
467
467
is marked as `deterministic <https://sqlite.org/deterministic.html >`_, which
@@ -480,12 +480,12 @@ Connection Objects
480
480
.. literalinclude :: ../includes/sqlite3/md5func.py
481
481
482
482
483
- .. method :: create_aggregate(name, num_params , aggregate_class)
483
+ .. method :: create_aggregate(name, n_arg , aggregate_class)
484
484
485
485
Creates a user-defined aggregate function.
486
486
487
487
The aggregate class must implement a ``step `` method, which accepts the number
488
- of parameters *num_params * (if *num_params * is -1, the function may take
488
+ of parameters *n_arg * (if *n_arg * is -1, the function may take
489
489
any number of arguments), and a ``finalize `` method which will return the
490
490
final result of the aggregate.
491
491
@@ -580,15 +580,15 @@ Connection Objects
580
580
Added support for disabling the authorizer using :const: `None `.
581
581
582
582
583
- .. method :: set_progress_handler(handler , n)
583
+ .. method :: set_progress_handler(progress_handler , n)
584
584
585
585
This routine registers a callback. The callback is invoked for every *n *
586
586
instructions of the SQLite virtual machine. This is useful if you want to
587
587
get called from SQLite during long-running operations, for example to update
588
588
a GUI.
589
589
590
590
If you want to clear any previously installed progress handler, call the
591
- method with :const: `None ` for *handler *.
591
+ method with :const: `None ` for *progress_handler *.
592
592
593
593
Returning a non-zero value from the handler function will terminate the
594
594
currently executing query and cause it to raise a :exc: `DatabaseError `
0 commit comments