@@ -573,7 +573,7 @@ Connection Objects
573
573
574
574
.. method :: set_authorizer(authorizer_callback)
575
575
576
- This routine registers a callback. The callback is invoked for each attempt to
576
+ Register callable * authorizer_callback * to be invoked for each attempt to
577
577
access a column of a table in the database. The callback should return
578
578
:const: `SQLITE_OK ` if access is allowed, :const: `SQLITE_DENY ` if the entire SQL
579
579
statement should be aborted with an error and :const: `SQLITE_IGNORE ` if the
@@ -599,7 +599,7 @@ Connection Objects
599
599
600
600
.. method :: set_progress_handler(progress_handler, n)
601
601
602
- This routine registers a callback. The callback is invoked for every *n *
602
+ Register callable * progress_handler * to be invoked for every *n *
603
603
instructions of the SQLite virtual machine. This is useful if you want to
604
604
get called from SQLite during long-running operations, for example to update
605
605
a GUI.
@@ -614,8 +614,8 @@ Connection Objects
614
614
615
615
.. method :: set_trace_callback(trace_callback)
616
616
617
- Registers *trace_callback * to be called for each SQL statement that is
618
- actually executed by the SQLite backend.
617
+ Register callable *trace_callback * to be invoked for each SQL statement
618
+ that is actually executed by the SQLite backend.
619
619
620
620
The only argument passed to the callback is the statement (as
621
621
:class: `str `) that is being executed. The return value of the callback is
@@ -638,8 +638,10 @@ Connection Objects
638
638
639
639
.. method :: enable_load_extension(enabled, /)
640
640
641
- This routine allows/disallows the SQLite engine to load SQLite extensions
642
- from shared libraries. SQLite extensions can define new functions,
641
+ Enable the SQLite engine to load SQLite extensions from shared libraries
642
+ if *enabled * is :const: `True `;
643
+ else, disallow loading SQLite extensions.
644
+ SQLite extensions can define new functions,
643
645
aggregates or whole new virtual table implementations. One well-known
644
646
extension is the fulltext-search extension distributed with SQLite.
645
647
@@ -656,9 +658,9 @@ Connection Objects
656
658
657
659
.. method :: load_extension(path, /)
658
660
659
- This routine loads an SQLite extension from a shared library. You have to
660
- enable extension loading with :meth: `enable_load_extension ` before you can
661
- use this routine .
661
+ Load an SQLite extension from a shared library located at * path *.
662
+ Enable extension loading with :meth: `enable_load_extension ` before
663
+ calling this method .
662
664
663
665
Loadable extensions are disabled by default. See [#f1 ]_.
664
666
@@ -867,8 +869,10 @@ Cursor Objects
867
869
868
870
.. method :: execute(sql, parameters=(), /)
869
871
870
- Execute an SQL statement. Values may be bound to the statement using
871
- :ref: `placeholders <sqlite3-placeholders >`.
872
+ Execute SQL statement *sql *.
873
+ Bind values to the statement using :ref: `placeholders
874
+ <sqlite3-placeholders>` that map to the :term: `sequence ` or :class: `dict `
875
+ *parameters *.
872
876
873
877
:meth: `execute ` will only execute a single SQL statement. If you try to execute
874
878
more than one statement with it, it will raise a :exc: `ProgrammingError `. Use
@@ -883,7 +887,7 @@ Cursor Objects
883
887
884
888
.. method :: executemany(sql, seq_of_parameters, /)
885
889
886
- Execute a :ref: `parameterized <sqlite3-placeholders >` SQL command
890
+ Execute :ref: `parameterized <sqlite3-placeholders >` SQL statement * sql *
887
891
against all parameter sequences or mappings found in the sequence
888
892
*seq_of_parameters *. It is also possible to use an
889
893
:term: `iterator ` yielding parameters instead of a sequence.
@@ -898,7 +902,7 @@ Cursor Objects
898
902
899
903
.. method :: executescript(sql_script, /)
900
904
901
- Execute multiple SQL statements at once .
905
+ Execute the SQL statements in * sql_script * .
902
906
If there is a pending transaciton,
903
907
an implicit ``COMMIT `` statement is executed first.
904
908
No other implicit transaction control is performed;
0 commit comments