Skip to content

andrewp-as-is/django-update-sql.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages