Skip to content
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

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dr-kd
Copy link

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

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