Skip to main content

Prepared statements support for Django

Project description

# DJANGO-PREPARED-QUERY[![Build Status](]([![Coverage Status](]([![PyPI](]()

## Installation
You can install `django-prepared-query` using pip:
$ pip install django-prepared-query

## Example
from django_prepared_query import PreparedManager, BindParam

class Book(models.Model):
objects = PreparedManager()

qs = Book.objects.filter(name__startswith=BindParam('name_start'))
books = qs.execute(name_start='A')

## Documentation
Documentation is available here

## Benchmark
[Here]( you can find notebook with benchmark.

## Goals
* ~~Add support for in lookup.~~
* ~~Add support for limit/offset.~~
* Make this working without specifying BindParams.
* Add support for INSERT/UPDATE sql queries.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-prepared-query, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size django-prepared-query-0.3.1.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page