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 details)

Uploaded Source

File details

Details for the file django-postgres-matviews-2020.12.1.tar.gz.

File metadata

  • Download URL: django-postgres-matviews-2020.12.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-postgres-matviews-2020.12.1.tar.gz
Algorithm Hash digest
SHA256 c08cf1dcd4bbfc1d281d8d1081a77ac02b73b9f0dec722cb78bf05d8144ae752
MD5 645673267a880ac2af46d1050d579e6f
BLAKE2b-256 bc6a8fe815a66bbd243dbf1f153f1e2196b3ff388f378ad167400c852d8f7e73

See more details on using hashes here.

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