Skip to content

Commit 617a148

Browse files
gh-118469: Document sqlite3.Binary in module constants
- Remove redundant second paragraph about DB-API 2.0 specification - Change 'bytes objects' to 'bytes-like objects' for accuracy - Add 'This is the current behavior' to clarify implementation status
1 parent 180b3eb commit 617a148

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,16 @@ Module constants
498498

499499
The ``named`` DB-API parameter style is also supported.
500500

501+
.. data:: Binary
502+
503+
A type object used to describe columns containing :abbr:`BLOB (Binary Large OBject)` data.
504+
Implemented as an alias for :class:`memoryview`.
505+
506+
.. note::
507+
508+
Binary data can also be stored and retrieved using bytes-like objects
509+
directly without using :data:`!Binary`. This is the current behavior.
510+
501511
.. data:: sqlite_version
502512

503513
Version number of the runtime SQLite library as a :class:`string <str>`.

0 commit comments

Comments
 (0)