Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reformat to max 80 chars pr. line
  • Loading branch information
Erlend E. Aasland committed Jan 18, 2022
commit de7867efe7a17ffd153fc014e9d3411623afb73e
8 changes: 4 additions & 4 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ Module functions and constants
implemented default is to cache 128 statements.

If *uri* is :const:`True`, *database* is interpreted as a
:abbr:`URI (Uniform Resource Identifier)` with a file path and an optional query string.
The scheme part *must* be ``"file:"``. The path can be a relative or absolute file path.
The query string allows us to pass parameters to SQLite. Some useful URI
tricks include::
:abbr:`URI (Uniform Resource Identifier)` with a file path and an optional
query string. The scheme part *must* be ``"file:"``. The path can be a
relative or absolute file path. The query string allows us to pass
parameters to SQLite. Some useful URI tricks include::

# Open a database in read-only mode.
con = sqlite3.connect("file:template.db?mode=ro", uri=True)
Expand Down