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
Metadata
Release files for django-postgres-matviews 2020.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-postgres-matviews-2020.12.1.tar.gz | 2.5 kB | Details |
Release files / django-postgres-matviews-2020.12.1.tar.gz
| Download URL | django-postgres-matviews-2020.12.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c08cf1dcd4bbfc1d281d8d1081a77ac02b73b9f0dec722cb78bf05d8144ae752
|
|
BLAKE2b-256 checksum How to use checksums |
bc6a8fe815a66bbd243dbf1f153f1e2196b3ff388f378ad167400c852d8f7e73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|