diff options
author | Erlend Egeberg Aasland <erlend.aasland@protonmail.com> | 2022-07-07 22:33:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 22:33:17 (GMT) |
commit | fb6dccae348b954d9f625031b54711a9a33da525 (patch) | |
tree | 8a953d31c6919041a05261a38941353c33b4e5a0 /Doc | |
parent | 71697664d71e09dcf34aac41f6c100350efc3726 (diff) | |
download | cpython-fb6dccae348b954d9f625031b54711a9a33da525.zip cpython-fb6dccae348b954d9f625031b54711a9a33da525.tar.gz cpython-fb6dccae348b954d9f625031b54711a9a33da525.tar.bz2 |
gh-94321: Document sqlite3.PrepareProtocol (#94620)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index ad49a21..2f4e2ae 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -1139,6 +1139,16 @@ Blob Objects end). +PrepareProtocol Objects +----------------------- + +.. class:: PrepareProtocol + + The PrepareProtocol type's single purpose is to act as a :pep:`246` style + adaption protocol for objects that can :ref:`adapt themselves + <sqlite3-conform>` to :ref:`native SQLite types <sqlite3-types>`. + + .. _sqlite3-exceptions: Exceptions @@ -1297,6 +1307,8 @@ As an application developer, it may make more sense to take direct control by registering custom adapter functions. +.. _sqlite3-conform: + Letting your object adapt itself """""""""""""""""""""""""""""""" |