We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So to support SeaQL/sea-orm#252
We need to properly discover Postgres enums from a given schema (MySQL enum is done already)
For example, given a schema:
sea-schema/tests/sakila/postgres/sakila-schema.sql
Lines 64 to 70 in e79afd4
We want to query the enum definition from information_schema and then output a TypeCreateStatement in the end:
information_schema
TypeCreateStatement
Type::create() .as_enum(Alias::new("mpaa_rating")) .values(vec![ "G", "PG", "PG-13", "R", "NC-17", ])
https://github.com/SeaQL/sea-query/blob/HEAD/src/extension/postgres/types.rs
We may need to add new data structures to the def module too.
def
Once we got the writer done, we can transform that in SeaORM inside the codegen.
writer
The text was updated successfully, but these errors were encountered:
@charleschege
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
So to support SeaQL/sea-orm#252
We need to properly discover Postgres enums from a given schema (MySQL enum is done already)
For example, given a schema:
sea-schema/tests/sakila/postgres/sakila-schema.sql
Lines 64 to 70 in e79afd4
We want to query the enum definition from
information_schema
and then output aTypeCreateStatement
in the end:https://github.com/SeaQL/sea-query/blob/HEAD/src/extension/postgres/types.rs
We may need to add new data structures to the
def
module too.Once we got the
writer
done, we can transform that in SeaORM inside the codegen.The text was updated successfully, but these errors were encountered: