django postgres matviews utils and commands
Project description
Installation
$ [sudo] pip install django-postgres-matviews
settings.py
INSTALLED_APPS+=['django_postgres_matviews']
Examples
$ python manage.py refresh_matviews
$ python manage.py drop_matviews
$ python manage.py refresh_matview "matview1" "matview2"
$ python manage.py drop_matviews "matview1" "matview2"
from django_postgres_matviews.utils import drop_matview, drop_matviews, get_matviews, refresh_matview, refresh_matviews
refresh_matviews()
drop_matviews()
refresh_matview('matview1')
drop_matview('matview1')
for m in get_matviews():
m.schemaname,m.matviewname
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-postgres-matviews-2020.12.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08cf1dcd4bbfc1d281d8d1081a77ac02b73b9f0dec722cb78bf05d8144ae752 |
|
MD5 | 645673267a880ac2af46d1050d579e6f |
|
BLAKE2b-256 | bc6a8fe815a66bbd243dbf1f153f1e2196b3ff388f378ad167400c852d8f7e73 |