@@ -326,9 +326,9 @@ Module functions and constants
326
326
float, str or bytes.
327
327
328
328
329
- .. function :: complete_statement(sql )
329
+ .. function :: complete_statement(statement )
330
330
331
- Returns :const: `True ` if the string *sql * contains one or more complete SQL
331
+ Returns :const: `True ` if the string *statement * contains one or more complete SQL
332
332
statements terminated by semicolons. It does not verify that the SQL is
333
333
syntactically correct, only that there are no unclosed string literals and the
334
334
statement is terminated by a semicolon.
@@ -447,11 +447,11 @@ Connection Objects
447
447
:meth: `~Cursor.executescript ` on it with the given *sql_script *.
448
448
Return the new cursor object.
449
449
450
- .. method :: create_function(name, num_params , func, *, deterministic=False)
450
+ .. method :: create_function(name, narg , func, *, deterministic=False)
451
451
452
452
Creates a user-defined function that you can later use from within SQL
453
- statements under the function name *name *. *num_params * is the number of
454
- parameters the function accepts (if *num_params * is -1, the function may
453
+ statements under the function name *name *. *narg * is the number of
454
+ parameters the function accepts (if *narg * is -1, the function may
455
455
take any number of arguments), and *func * is a Python callable that is
456
456
called as the SQL function. If *deterministic * is true, the created function
457
457
is marked as `deterministic <https://sqlite.org/deterministic.html >`_, which
@@ -470,12 +470,12 @@ Connection Objects
470
470
.. literalinclude :: ../includes/sqlite3/md5func.py
471
471
472
472
473
- .. method :: create_aggregate(name, num_params , aggregate_class)
473
+ .. method :: create_aggregate(name, n_arg , aggregate_class)
474
474
475
475
Creates a user-defined aggregate function.
476
476
477
477
The aggregate class must implement a ``step `` method, which accepts the number
478
- of parameters *num_params * (if *num_params * is -1, the function may take
478
+ of parameters *n_arg * (if *n_arg * is -1, the function may take
479
479
any number of arguments), and a ``finalize `` method which will return the
480
480
final result of the aggregate.
481
481
@@ -570,15 +570,15 @@ Connection Objects
570
570
Added support for disabling the authorizer using :const: `None `.
571
571
572
572
573
- .. method :: set_progress_handler(handler , n)
573
+ .. method :: set_progress_handler(progress_handler , n)
574
574
575
575
This routine registers a callback. The callback is invoked for every *n *
576
576
instructions of the SQLite virtual machine. This is useful if you want to
577
577
get called from SQLite during long-running operations, for example to update
578
578
a GUI.
579
579
580
580
If you want to clear any previously installed progress handler, call the
581
- method with :const: `None ` for *handler *.
581
+ method with :const: `None ` for *progress_handler *.
582
582
583
583
Returning a non-zero value from the handler function will terminate the
584
584
currently executing query and cause it to raise an :exc: `OperationalError `
0 commit comments