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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-update-sql-2020.12.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed80e8aba306126cdff3918365b3dee93eaf5d6bd163203c85dbc48cb4c7e0e |
|
MD5 | c73e9da484972645316557167f9ce428 |
|
BLAKE2b-256 | ca6636b17d9d1a5793061de987ee5b974093b0c62bc513988fe9b592c18ee7b2 |