Skip to content

Commit

Permalink
Link Trace to trace stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 17, 2024
1 parent 7a3ccb9 commit f3223ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions apsw/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,7 @@ class Connection:
.. seealso::
* :ref:`Example <example_trace_v2>`
* :class:`apsw.ext.Trace`
Calls:
* `sqlite3_trace_v2 <https://sqlite.org/c3ref/trace_v2.html>`__
Expand Down
9 changes: 8 additions & 1 deletion doc/pysqlite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,14 @@ module:
sqlite3's *executescript* method doesn't allow any form of
data being returned (it silently ignores any returned data).

* APSW has better :ref:`execution and row tracing <tracing>`.
* APSW has better :ref:`execution and row tracing <tracing>`. Both
APSW and sqlite3 wrap `sqlite3_trace_v2
<https://www.sqlite.org/c3ref/trace_v2.html>`__. sqlite3 only lets
you see :meth:`the text of executed statements
<sqlite3.Connection.set_trace_callback>`. APSW provides :meth:`a
lot more information <apsw.Connection.trace_v2>`, and allows for
multiple callbacks. And provides a :class:`helpful context block
tracer <apsw.ext.Trace>`.

* :doc:`ext` includes:

Expand Down
1 change: 1 addition & 0 deletions src/apsw.docstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,7 @@
".. seealso::\n" \
"\n" \
" * :ref:`Example <example_trace_v2>`\n" \
" * :class:`apsw.ext.Trace`\n" \
"\n" \
"Calls:\n" \
" * `sqlite3_trace_v2 <https://sqlite.org/c3ref/trace_v2.html>`__\n" \
Expand Down
1 change: 1 addition & 0 deletions src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,7 @@ Connection_set_profile(Connection *self, PyObject *const *fast_args, Py_ssize_t
.. seealso::
* :ref:`Example <example_trace_v2>`
* :class:`apsw.ext.Trace`
-* sqlite3_trace_v2 sqlite3_stmt_status
*/
Expand Down

0 comments on commit f3223ee

Please sign in to comment.