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

Uploaded Source

Built Distribution

django_d1db-0.0.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for django_d1db-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5bc757dadd54ff2549f2fcfed7db04d036f47cf982ee2db45c8a4d2c5a0b4406
MD5 f832dcf48d514a37c72a85e8000c0bfb
BLAKE2b-256 c4e88fe0d587e976cf9cbd2821c6c246b6ed4d232448dcceae954cd1e4145a90

See more details on using hashes here.

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

Hashes for django_d1db-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da99a0bbc93a189b1bc0a6ab3a90c9156d96ea1321c19d72f7d4fe764d8d10df
MD5 99542181199e0dda0af5569e70656be3
BLAKE2b-256 06abfecbdc25f1cdf3fbb55cb46cc8b86150b48a4d8ea0c5aa5090e936002fa8

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