@@ -304,7 +304,7 @@ Module functions and constants
304
304
Added the ``sqlite3.connect/handle `` auditing event.
305
305
306
306
307
- .. function :: register_converter(typename, converter)
307
+ .. function :: register_converter(typename, converter, / )
308
308
309
309
Register the *converter * callable to convert SQLite objects of type
310
310
*typename * into a Python object of a specific type.
@@ -318,7 +318,7 @@ Module functions and constants
318
318
case-insensitively.
319
319
320
320
321
- .. function :: register_adapter(type, adapter)
321
+ .. function :: register_adapter(type, adapter, / )
322
322
323
323
Register an *adapter * callable to adapt the Python type *type * into an
324
324
SQLite type.
@@ -340,7 +340,7 @@ Module functions and constants
340
340
.. literalinclude :: ../includes/sqlite3/complete_statement.py
341
341
342
342
343
- .. function :: enable_callback_tracebacks(flag)
343
+ .. function :: enable_callback_tracebacks(flag, / )
344
344
345
345
By default you will not get any tracebacks in user-defined functions,
346
346
aggregates, converters, authorizer callbacks etc. If you want to debug them,
@@ -445,7 +445,7 @@ Connection Objects
445
445
.. literalinclude :: ../includes/sqlite3/md5func.py
446
446
447
447
448
- .. method :: create_aggregate(name, n_arg, aggregate_class)
448
+ .. method :: create_aggregate(name, /, n_arg, aggregate_class)
449
449
450
450
Creates a user-defined aggregate function.
451
451
@@ -546,7 +546,7 @@ Connection Objects
546
546
.. versionadded :: 3.3
547
547
548
548
549
- .. method :: enable_load_extension(enabled)
549
+ .. method :: enable_load_extension(enabled, / )
550
550
551
551
This routine allows/disallows the SQLite engine to load SQLite extensions
552
552
from shared libraries. SQLite extensions can define new functions,
@@ -564,7 +564,7 @@ Connection Objects
564
564
565
565
.. literalinclude :: ../includes/sqlite3/load_extension.py
566
566
567
- .. method :: load_extension(path)
567
+ .. method :: load_extension(path, / )
568
568
569
569
This routine loads an SQLite extension from a shared library. You have to
570
570
enable extension loading with :meth: `enable_load_extension ` before you can
@@ -703,7 +703,7 @@ Cursor Objects
703
703
.. index :: single: ? (question mark); in SQL statements
704
704
.. index :: single: : (colon); in SQL statements
705
705
706
- .. method :: execute(sql[ , parameters] )
706
+ .. method :: execute(sql, parameters=(), / )
707
707
708
708
Execute an SQL statement. Values may be bound to the statement using
709
709
:ref: `placeholders <sqlite3-placeholders >`.
@@ -719,7 +719,7 @@ Cursor Objects
719
719
a transaction is implicitly opened before executing *sql *.
720
720
721
721
722
- .. method :: executemany(sql, seq_of_parameters)
722
+ .. method :: executemany(sql, seq_of_parameters, / )
723
723
724
724
Execute a :ref: `parameterized <sqlite3-placeholders >` SQL command
725
725
against all parameter sequences or mappings found in the sequence
@@ -734,7 +734,7 @@ Cursor Objects
734
734
.. literalinclude :: ../includes/sqlite3/executemany_2.py
735
735
736
736
737
- .. method :: executescript(sql_script)
737
+ .. method :: executescript(sql_script, / )
738
738
739
739
Execute multiple SQL statements at once.
740
740
If there is a pending transaciton,
@@ -784,11 +784,11 @@ Cursor Objects
784
784
The cursor will be unusable from this point forward; a :exc: `ProgrammingError `
785
785
exception will be raised if any operation is attempted with the cursor.
786
786
787
- .. method :: setinputsizes(sizes)
787
+ .. method :: setinputsizes(sizes, / )
788
788
789
789
Required by the DB-API. Does nothing in :mod: `sqlite3 `.
790
790
791
- .. method :: setoutputsize(size [ , column] )
791
+ .. method :: setoutputsize(size, column=None, / )
792
792
793
793
Required by the DB-API. Does nothing in :mod: `sqlite3 `.
794
794
0 commit comments