-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Basic implementation of materialized view #3649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
based on how postgreSQL does it
|
|
h2/src/main/org/h2/res/help.csv
Outdated
| CREATE @h2@ [ OR REPLACE ] @h2@ | ||
| MATERIALIZED VIEW @h2@ [ IF NOT EXISTS ] [schemaName.]viewName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@h2@ CREATE [ OR REPLACE ]
@h2@ MATERIALIZED VIEW [ IF NOT EXISTS ] [schemaName.]viewName
h2/src/main/org/h2/res/help.csv
Outdated
| " | ||
|
|
||
| "Commands (DDL)","DROP MATERIALIZED VIEW"," | ||
| DROP MATERIALIZED VIEW @h2@ [ IF EXISTS ] [schemaName.]viewName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@h2@ DROP MATERIALIZED VIEW [ IF EXISTS ] [schemaName.]viewName
h2/src/main/org/h2/res/help.csv
Outdated
| " | ||
|
|
||
| "Commands (DDL)","REFRESH MATERIALIZED VIEW"," | ||
| DROP MATERIALIZED VIEW @h2@ [ IF EXISTS ] [schemaName.]viewName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@h2@ DROP MATERIALIZED VIEW [ IF EXISTS ] [schemaName.]viewName
| @Override | ||
| public final boolean isView() { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method should return true, otherwise this view with its definition will not be listed in INFORMATION_SCHEMA.VIEWS.
This implements basic support for CREATE MATERIALIZED VIEW, using the PostgreSQL style syntax.
These views are created and refreshed manually