Skip to main content

Django UPDATE sql generator

Project description

Installation

$ [sudo] pip install django-update-sql

Examples

from django_update_sql import update_sql

qs = Table.objects.filter(pk=42)
kwargs = dict(key='value', updated_at=datetime.now())
update_sql(qs, **kwargs) 
UPDATE "table" SET "key" = 'value',"updated_at" = '2020-01-23T00:49:39'::timestamp WHERE "id" = 42

readme42.com

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-update-sql-2020.12.21.tar.gz (1.4 kB view hashes)

Uploaded Source

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