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

feat: support CreateEnumStmt #67

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

cvng
Copy link
Contributor

@cvng cvng commented Dec 13, 2023

What kind of change does this PR introduce?

feat: support CreateEnumStmt

What is the current behavior?

Parser panics

What is the new behavior?

[2023-12-13T14:27:17Z DEBUG parser::codegen::tests] pg_query_root: Some(
        CreateEnumStmt(
            CreateEnumStmt {
                type_name: [
                    Node {
                        node: Some(
                            String(
                                String {
                                    sval: "status",
                                },
                            ),
                        ),
                    },
                ],
                vals: [
                    Node {
                        node: Some(
                            String(
                                String {
                                    sval: "open",
                                },
                            ),
                        ),
                    },
                    Node {
                        node: Some(
                            String(
                                String {
                                    sval: "closed",
                                },
                            ),
                        ),
                    },
                ],
            },
        ),
    )

Additional context

Add any other context or screenshots.

@psteinroe psteinroe merged commit f0fca97 into supabase-community:main Dec 13, 2023
1 check passed
@cvng cvng deleted the create-type branch December 13, 2023 16:48
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