Skip to content

Conversation

@grandinj
Copy link
Contributor

This implements basic support for CREATE MATERIALIZED VIEW, using the PostgreSQL style syntax.

These views are created and refreshed manually

@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Oct 10, 2022

⚠️ 222 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

Comment on lines 1105 to 1106
CREATE @h2@ [ OR REPLACE ] @h2@
MATERIALIZED VIEW @h2@ [ IF NOT EXISTS ] [schemaName.]viewName
Copy link
Contributor

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

"

"Commands (DDL)","DROP MATERIALIZED VIEW","
DROP MATERIALIZED VIEW @h2@ [ IF EXISTS ] [schemaName.]viewName
Copy link
Contributor

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

"

"Commands (DDL)","REFRESH MATERIALIZED VIEW","
DROP MATERIALIZED VIEW @h2@ [ IF EXISTS ] [schemaName.]viewName
Copy link
Contributor

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

Comment on lines 64 to 67
@Override
public final boolean isView() {
return false;
}
Copy link
Contributor

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.

@grandinj grandinj merged commit d4136c9 into h2database:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants