Metadata-Version: 2.5
Name: sqlite3_hat
Version: 0.1
Summary: Lightweight wrapper with improvements on sqlite3
Author-email: Thomas Kluyver <takluyver@fastmail.com>
Requires-Python: >=3.12
Description-Content-Type: text/x-rst
License-Expression: MPL-2.0
License-File: LICENSE
Project-URL: Documentation, https://sqlite3-hat.readthedocs.io/en/latest/
Project-URL: Source, https://codeberg.org/takluyver/sqlite3_hat
Import-Name: sqlite3_hat

``sqlite3_hat`` is a small, pure Python wrapper to improve the ``sqlite3``
module from the standard library.

``sqlite3_hat`` adds (or changes):

- Nested transaction support, using SQLite savepoints
- Autocommit is on (see why autocommit)
- Foreign key enforcement is on
- Non-standard double-quoted string syntax is disabled by default
- Convenient way to open a database read-only
- Parameters can be supplied in t-strings, or as ``*args`` rather than tuples
- Shortcut ``.queryone()`` method for getting a single row

The API is very similar to ``sqlite3``, but it's not a complete drop-in
replacement.

