Skip to content

Commit 385a72c

Browse files
committed
Update generated files
1 parent 344d649 commit 385a72c

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

apsw/__init__.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def complete(statement: str) -> bool:
344344
...
345345

346346
def config(op: int, *args: Any) -> None:
347-
""":param op: A `configuration operation <https://sqlite.org/c3ref/c_config_chunkalloc.html>`_
347+
""":param op: A `configuration operation <https://sqlite.org/c3ref/c_config_covering_index_scan.html>`_
348348
:param args: Zero or more arguments as appropriate for *op*
349349
350350
Some operations don't make sense from a Python program. All the
@@ -381,9 +381,9 @@ def exception_for(code: int) -> Exception:
381381
particular SQLite `error code
382382
<https://sqlite.org/c3ref/c_abort.html>`_ then call this function.
383383
It also understands `extended error codes
384-
<https://sqlite.org/c3ref/c_ioerr_access.html>`_.
384+
<https://sqlite.org/c3ref/c_abort_rollback.html>`_.
385385
386-
For example to raise `SQLITE_IOERR_ACCESS <https://sqlite.org/c3ref/c_ioerr_access.html>`_::
386+
For example to raise `SQLITE_IOERR_ACCESS <https://sqlite.org/rescode.html#ioerr_access>`_::
387387
388388
raise apsw.exception_for(apsw.SQLITE_IOERR_ACCESS)"""
389389
...
@@ -704,7 +704,7 @@ sqlitelibversion = sqlite_lib_version ## OLD-NAME
704704
def status(op: int, reset: bool = False) -> tuple[int, int]:
705705
"""Returns current and highwater measurements.
706706
707-
:param op: A `status parameter <https://sqlite.org/c3ref/c_status_malloc_size.html>`_
707+
:param op: A `status parameter <https://sqlite.org/c3ref/c_status_malloc_count.html>`_
708708
:param reset: If *True* then the highwater is set to the current value
709709
:returns: A tuple of current value and highwater value
710710
@@ -1439,7 +1439,7 @@ class Connection:
14391439

14401440
def config(self, op: int, *args: int) -> int:
14411441
""":param op: A `configuration operation
1442-
<https://sqlite.org/c3ref/c_dbconfig_enable_fkey.html>`__
1442+
<https://sqlite.org/c3ref/c_dbconfig_defensive.html>`__
14431443
:param args: Zero or more arguments as appropriate for *op*
14441444
14451445
This is how to get the fkey setting::
@@ -1786,7 +1786,7 @@ class Connection:
17861786
17871787
:param dbname: The name of the database to affect. `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__
17881788
:param op: A `numeric code
1789-
<https://sqlite.org/c3ref/c_fcntl_lockstate.html>`_ with values less
1789+
<https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html>`__ with values less
17901790
than 100 reserved for SQLite internal use.
17911791
:param pointer: A number which is treated as a ``void pointer`` at the C level.
17921792
@@ -2669,7 +2669,7 @@ class Cursor:
26692669
:class:`zeroblob`, or a wrapped :ref:`Python object <pyobject>`
26702670
:param can_cache: If False then the statement cache will not be used to find an already prepared query, nor will it be
26712671
placed in the cache after execution
2672-
:param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_normalize.html>`__ passed to
2672+
:param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_dont_log.html>`__ passed to
26732673
`sqlite_prepare_v3 <https://sqlite.org/c3ref/prepare.html>`__
26742674
:param explain: If 0 or greater then the statement is passed to `sqlite3_stmt_explain <https://sqlite.org/c3ref/stmt_explain.html>`__
26752675
where you can force it to not be an explain, or force explain or explain query plan.
@@ -6349,7 +6349,7 @@ class AsyncConnection:
63496349

63506350
async def config(self, op: int, *args: int) -> int:
63516351
""":param op: A `configuration operation
6352-
<https://sqlite.org/c3ref/c_dbconfig_enable_fkey.html>`__
6352+
<https://sqlite.org/c3ref/c_dbconfig_defensive.html>`__
63536353
:param args: Zero or more arguments as appropriate for *op*
63546354
63556355
This is how to get the fkey setting::
@@ -6655,7 +6655,7 @@ class AsyncConnection:
66556655
66566656
:param dbname: The name of the database to affect. `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__
66576657
:param op: A `numeric code
6658-
<https://sqlite.org/c3ref/c_fcntl_lockstate.html>`_ with values less
6658+
<https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html>`__ with values less
66596659
than 100 reserved for SQLite internal use.
66606660
:param pointer: A number which is treated as a ``void pointer`` at the C level.
66616661
@@ -7474,7 +7474,7 @@ class AsyncCursor:
74747474
:class:`zeroblob`, or a wrapped :ref:`Python object <pyobject>`
74757475
:param can_cache: If False then the statement cache will not be used to find an already prepared query, nor will it be
74767476
placed in the cache after execution
7477-
:param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_normalize.html>`__ passed to
7477+
:param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_dont_log.html>`__ passed to
74787478
`sqlite_prepare_v3 <https://sqlite.org/c3ref/prepare.html>`__
74797479
:param explain: If 0 or greater then the statement is passed to `sqlite3_stmt_explain <https://sqlite.org/c3ref/stmt_explain.html>`__
74807480
where you can force it to not be an explain, or force explain or explain query plan.

src/apsw.docstrings

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104

105105
#define Apsw_config_DOC "apsw.config(op: int, *args: Any) -> None\n\n" \
106-
":param op: A `configuration operation <https://sqlite.org/c3ref/c_config_chunkalloc.html>`_\n" \
106+
":param op: A `configuration operation <https://sqlite.org/c3ref/c_config_covering_index_scan.html>`_\n" \
107107
":param args: Zero or more arguments as appropriate for *op*\n" \
108108
"\n" \
109109
"Some operations don't make sense from a Python program. All the\n" \
@@ -136,9 +136,9 @@
136136
"particular SQLite `error code\n" \
137137
"<https://sqlite.org/c3ref/c_abort.html>`_ then call this function.\n" \
138138
"It also understands `extended error codes\n" \
139-
"<https://sqlite.org/c3ref/c_ioerr_access.html>`_.\n" \
139+
"<https://sqlite.org/c3ref/c_abort_rollback.html>`_.\n" \
140140
"\n" \
141-
"For example to raise `SQLITE_IOERR_ACCESS <https://sqlite.org/c3ref/c_ioerr_access.html>`_::\n" \
141+
"For example to raise `SQLITE_IOERR_ACCESS <https://sqlite.org/rescode.html#ioerr_access>`_::\n" \
142142
"\n" \
143143
" raise apsw.exception_for(apsw.SQLITE_IOERR_ACCESS)\n"
144144

@@ -560,7 +560,7 @@
560560
#define Apsw_status_DOC "apsw.status(op: int, reset: bool = False) -> tuple[int, int]\n\n" \
561561
"Returns current and highwater measurements.\n" \
562562
"\n" \
563-
":param op: A `status parameter <https://sqlite.org/c3ref/c_status_malloc_size.html>`_\n" \
563+
":param op: A `status parameter <https://sqlite.org/c3ref/c_status_malloc_count.html>`_\n" \
564564
":param reset: If *True* then the highwater is set to the current value\n" \
565565
":returns: A tuple of current value and highwater value\n" \
566566
"\n" \
@@ -1635,7 +1635,7 @@
16351635

16361636
#define Connection_config_DOC "Connection.config(op: int, *args: int) -> int\n\n" \
16371637
":param op: A `configuration operation\n" \
1638-
" <https://sqlite.org/c3ref/c_dbconfig_enable_fkey.html>`__\n" \
1638+
" <https://sqlite.org/c3ref/c_dbconfig_defensive.html>`__\n" \
16391639
":param args: Zero or more arguments as appropriate for *op*\n" \
16401640
"\n" \
16411641
"This is how to get the fkey setting::\n" \
@@ -2099,7 +2099,7 @@
20992099
"\n" \
21002100
":param dbname: The name of the database to affect. `main`, `temp`, the name in `ATTACH <https://sqlite.org/lang_attach.html>`__\n" \
21012101
":param op: A `numeric code\n" \
2102-
" <https://sqlite.org/c3ref/c_fcntl_lockstate.html>`_ with values less\n" \
2102+
" <https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html>`__ with values less\n" \
21032103
" than 100 reserved for SQLite internal use.\n" \
21042104
":param pointer: A number which is treated as a ``void pointer`` at the C level.\n" \
21052105
"\n" \
@@ -3345,7 +3345,7 @@
33453345
" :class:`zeroblob`, or a wrapped :ref:`Python object <pyobject>`\n" \
33463346
":param can_cache: If False then the statement cache will not be used to find an already prepared query, nor will it be\n" \
33473347
" placed in the cache after execution\n" \
3348-
":param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_normalize.html>`__ passed to\n" \
3348+
":param prepare_flags: `flags <https://sqlite.org/c3ref/c_prepare_dont_log.html>`__ passed to\n" \
33493349
" `sqlite_prepare_v3 <https://sqlite.org/c3ref/prepare.html>`__\n" \
33503350
":param explain: If 0 or greater then the statement is passed to `sqlite3_stmt_explain <https://sqlite.org/c3ref/stmt_explain.html>`__\n" \
33513351
" where you can force it to not be an explain, or force explain or explain query plan.\n" \

0 commit comments

Comments
 (0)