Metadata-Version: 2.4
Name: django-sqlite-strict
Version: 0.1.0
Summary: SQLite database engine for Django that makes every table a STRICT table.
Keywords: Django,SQLite,strict
Author: Alberto Morón Hernández
Author-email: Alberto Morón Hernández <alberto.moronh@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Typing :: Typed
Requires-Dist: django>=4.2
Requires-Python: >=3.10
Project-URL: Repository, https://github.com/albertomh/django-sqlite-strict
Project-URL: Changelog, https://github.com/albertomh/django-sqlite-strict/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

# django-sqlite-strict

## Usage

`django-sqlite-strict` is a drop-in replacement for Django's stock SQLite engine.

### Prerequisites

- A Django webapp using:
  - Django >= 4.2
  - SQLite >= 3.37.0

### Install

1. Add as a dependency with `uv add django-sqlite-strict`
2. In `settings.py`, add to `INSTALLED_APPS` after any first-party apps and before `django.contrib`
   packages.
3. In `settings.py`, configure DATABASES to use it as the engine:

```python
DATABASES = {
    "default": {
        "ENGINE": "django_sqlite_strict",
        "NAME": BASE_DIR / "db.sqlite3",
    }
}
```

## Develop

### Run tests

```sh
# run latest supported python/django pairing eg. 3.14/6.0
uvx nox

# run all test sessions
uvx nox -s test
```
