| | |
- builtins.object
-
- MaterializedView
- View
class MaterializedView(builtins.object) |
| |
MaterializedView(name, query)
|
| |
Methods defined here:
- __init__(self, name, query)
- Initialize a new materialized view with a name and query.
Args:
name (str): The name of the materialized view.
query (function): A function that returns the data for the materialized view.
- get_data(self)
- Return the data for the materialized view.
Returns:
list: The data for the materialized view.
- refresh(self)
- Refresh the data for the materialized view by re-executing the query.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|
class View(builtins.object) |
| |
View(name, query)
|
| |
Methods defined here:
- __init__(self, name, query)
- Initialize a new view with a name and query.
Args:
name (str): The name of the view.
query (function): A function that returns the data for the view.
- get_data(self)
- Execute the query and return the data for the view.
Returns:
list: The data for the view.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |