Answers for "call materialized view in django postgres"

1

call materialized view in django postgres

# Add the name of your materialized view in the Meta as shown at the bottom
from django.db import models

class CustomerOrderVolume(models.Model):
    unique_id   = models.CharField(max_length=255, primary_key=True)
    customer_name = models.CharField(max_length=255)
	# Additional fields
    class Meta:
        managed = False
        db_table='customer_order_volume'
Posted by: Guest on February-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language