mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.11] gh-94622: Add more references to the sqlite3 types anchor (GH-94623) (#94678)
(cherry picked from commit e5b841a403
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
c72001e5bd
commit
73a1800b55
1 changed files with 8 additions and 8 deletions
|
@ -486,8 +486,8 @@ Connection Objects
|
||||||
SQLite 3.8.3 or higher, :exc:`NotSupportedError` will be raised if used
|
SQLite 3.8.3 or higher, :exc:`NotSupportedError` will be raised if used
|
||||||
with older versions.
|
with older versions.
|
||||||
|
|
||||||
The function can return any of the types supported by SQLite: bytes, str, int,
|
The function can return any of
|
||||||
float and ``None``.
|
:ref:`the types natively supported by SQLite <sqlite3-types>`.
|
||||||
|
|
||||||
.. versionchanged:: 3.8
|
.. versionchanged:: 3.8
|
||||||
The *deterministic* parameter was added.
|
The *deterministic* parameter was added.
|
||||||
|
@ -506,8 +506,8 @@ Connection Objects
|
||||||
any number of arguments), and a ``finalize`` method which will return the
|
any number of arguments), and a ``finalize`` method which will return the
|
||||||
final result of the aggregate.
|
final result of the aggregate.
|
||||||
|
|
||||||
The ``finalize`` method can return any of the types supported by SQLite:
|
The ``finalize`` method can return any of
|
||||||
bytes, str, int, float and ``None``.
|
:ref:`the types natively supported by SQLite <sqlite3-types>`.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -527,10 +527,10 @@ Connection Objects
|
||||||
|
|
||||||
``step`` and ``value`` accept *num_params* number of parameters,
|
``step`` and ``value`` accept *num_params* number of parameters,
|
||||||
unless *num_params* is ``-1``, in which case they may take any number of
|
unless *num_params* is ``-1``, in which case they may take any number of
|
||||||
arguments. ``finalize`` and ``value`` can return any of the types
|
arguments.
|
||||||
supported by SQLite:
|
``finalize`` and ``value`` can return any of
|
||||||
:class:`bytes`, :class:`str`, :class:`int`, :class:`float`, and
|
:ref:`the types natively supported by SQLite <sqlite3-types>`.
|
||||||
:const:`None`. Call :meth:`create_window_function` with
|
Call :meth:`create_window_function` with
|
||||||
*aggregate_class* set to :const:`None` to clear window function *name*.
|
*aggregate_class* set to :const:`None` to clear window function *name*.
|
||||||
|
|
||||||
Aggregate window functions are supported by SQLite 3.25.0 and higher.
|
Aggregate window functions are supported by SQLite 3.25.0 and higher.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue