Skip to main content

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.6.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

django_d1db-0.0.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file django_d1db-0.0.6.tar.gz.

File metadata

  • Download URL: django_d1db-0.0.6.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.3

File hashes

Hashes for django_d1db-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a04b43bd075835e9c04068649d261b54c710cefd6acac773d4ae397b20502589
MD5 44369b94a9f93df7ea3cb8862e6d9496
BLAKE2b-256 5ad605efa20fed398dbdc21c2ceafe793c727d06ca49be3766b6609880b7cac1

See more details on using hashes here.

File details

Details for the file django_d1db-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: django_d1db-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.3

File hashes

Hashes for django_d1db-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 66a9a4d882f30baa2ebc29ddde0df577c5656fb53649344c542ec83074ca72a1
MD5 9ac99526dc3d82934de646c6d74d7ad7
BLAKE2b-256 fbfd4cc21d692bdd288955e97ef189cb6f571c294bdf1055f8617deda85874b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page