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

Support for enum types #458

Open
jar145 opened this issue Feb 5, 2025 · 0 comments
Open

Support for enum types #458

jar145 opened this issue Feb 5, 2025 · 0 comments

Comments

@jar145
Copy link

jar145 commented Feb 5, 2025

Hello, I'm wondering how one might obtain an enum type from the db with legend state. It is showing in my db types that were generated.

  ...
  public: {
    Tables: {
      recipes: {
        Row: {
          ...
          difficulty: Database["public"]["Enums"]["recipe_difficulty"] | null
         ...
        }
        Insert: {
          ...
          difficulty?: Database["public"]["Enums"]["recipe_difficulty"] | null
         ...
        }
        Update: {
          ...
          difficulty?: Database["public"]["Enums"]["recipe_difficulty"] | null
          ....
        }
        Relationships: []
      }
    }
    ...
    Enums: {
      recipe_difficulty: "Easy" | "Medium" | "Hard"
    }
  }
}

Any guidance would be helpful and let me know if there is more info I could provide.
Thanks!

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

No branches or pull requests

1 participant