Skip to main content

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

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-postgres-matviews-2020.12.1.tar.gz (2.5 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