Skip to content

this patch allows us to extract DDL for materialized views for oracle - #25

Draft
dr-kd wants to merge 1 commit into
dbsrgits:masterfrom
dr-kd:oracle_mviews
Draft

this patch allows us to extract DDL for materialized views for oracle#25
dr-kd wants to merge 1 commit into
dbsrgits:masterfrom
dr-kd:oracle_mviews

Conversation

@dr-kd

@dr-kd dr-kd commented Sep 10, 2021

Copy link
Copy Markdown

This PR allows oracle's materialised views to be ingested as views by Schema::Loader.

TODO: Nothing done so far to ensure the correct DDL is emitted - and with oracle's refresh scheduling statement too

I'd like some guidance about if this is the correct approach, and where I should look to get the view_definition to ingest the fuller materialised view ddl statement for example:

create materialized view mv_alternatives
refresh next trunc(sysdate + 1) + 6/24
as
    select  alts.identifier,
            count(*) as alternatives
    from    (
                select distinct(identifier) from item_alternate
                union all
                select distinct(identifier) from item_replacement
            ) alts
    group by alts.identifier

…ploy part of the problem is unsolved as is oracle's schedule declaration
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.

1 participant