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

DDL -> avro #2

Open
maroshmka opened this issue Jul 30, 2019 · 0 comments
Open

DDL -> avro #2

maroshmka opened this issue Jul 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@maroshmka
Copy link

Support ddl as string (e.g. from pg_dump) to avro. e.g.

a = """
CREATE TABLE public.abc (
    a integer NOT NULL,
    b integer NOT NULL,
    created_at timestamp with time zone,
    c integer,
    hello text[],
    updated_at timestamp without time zone
);
"""  # or get from somewher
avro_schema = get_avro_from_ddl(a)
@maroshmka maroshmka added the enhancement New feature or request label Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant