Django backend for Cloudflare D1
Project description
django-d1
Cloudflare D1 backend engine for Django
This package is still in tests, and issues will probably appear! Please report any issues you find in the Issues tab.
Installation
pip install django-d1db
Usage
DATABASES = {
'default': {
'ENGINE': 'django_d1',
'CLOUDFLARE_DATABASE_ID': '<database_id>',
'CLOUDFLARE_ACCOUNT_ID': '<account_id>',
'CLOUDFLARE_TOKEN': '<token>',
}
}
The Cloudflare token requires D1 Edit permissions.
Limitations
Due to the remote nature of D1, queries can take some time to execute.
Read all Django limitations for SQLite databases here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_d1db-0.0.3.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file django_d1db-0.0.3.tar.gz
.
File metadata
- Download URL: django_d1db-0.0.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bc757dadd54ff2549f2fcfed7db04d036f47cf982ee2db45c8a4d2c5a0b4406 |
|
MD5 | f832dcf48d514a37c72a85e8000c0bfb |
|
BLAKE2b-256 | c4e88fe0d587e976cf9cbd2821c6c246b6ed4d232448dcceae954cd1e4145a90 |
File details
Details for the file django_d1db-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_d1db-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da99a0bbc93a189b1bc0a6ab3a90c9156d96ea1321c19d72f7d4fe764d8d10df |
|
MD5 | 99542181199e0dda0af5569e70656be3 |
|
BLAKE2b-256 | 06abfecbdc25f1cdf3fbb55cb46cc8b86150b48a4d8ea0c5aa5090e936002fa8 |