Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

DimaKudosh/django-prepared-query

Repository files navigation

DJANGO-PREPARED-QUERYBuild StatusCoverage StatusPyPI

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 http://django-prepared-query.readthedocs.io/en/latest/

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.

About

SQL prepared statement support for Django ORM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages