sqlite3.PrepareProtocol
Prev: sqlite3.OperationalError | Up: sqlite3 | Next: sqlite3.ProgrammingError
Rel: sqlite3.adapt, sqlite3.Binary, sqlite3.Blob, sqlite3.complete_statement
Ref: docs.python.org — sqlite3.PrepareProtocol
Tags: #public #python3 #stdlib #sqlite3
Import
import sqlite3
from sqlite3 import PrepareProtocol
Signature & Overview
sqlite3.PrepareProtocol(...)
PEP 246 style object adaption protocol type.
Usage
import sqlite3
# Internal protocol class used by sqlite3.adapt() and __conform__()
assert isinstance(sqlite3.PrepareProtocol, type)
Gotchas
- Used in custom
__conform__(self, protocol)methods: Checkif protocol is sqlite3.PrepareProtocol:before returning a SQLite-compatible primitive.
REPL Inspect
from sqlite3 import PrepareProtocol
help(PrepareProtocol)
Linked from
Related notes
- tuts/python3/stdlib_module/sqlite3 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/OperationalError Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/ProgrammingError Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/adapt Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Binary Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Blob Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/complete_statement Linked here; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib