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
sea-orm-cli #24
Comments
Ok, errors will be shown so if we cannot find / read from .env |
sea-orm-cli$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.33s
Running `/mnt/c/Users/tyt2y/projects/sea-orm/target/debug/sea-orm-cli`
thread 'main' panicked at 'internal error: entered unreachable code: You should never see this message', sea-orm-cli/src/main.rs:18:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace We should display a welcome messge |
Will redirect to See 47bb5b3
|
For the I would also suggest using |
DATABASE_SCHEMA should be optional |
Regarding setting So, if e.g. connection string
|
Yes it is the intended behavior. Too bad for the confusion. I definitely think that SeaSchema MySQL should rename that parameter to |
Is this behavior reasonable for MySQL?
|
MySQL does not have a concept of schema. So it's irrelevant. |
Yes, will do so loll |
Rename the |
Yes please |
To clarify, our expected behavior:
Please make the changes to |
The new ignore hidden table behavior for
|
* Correct type from Alias::new("ploygon") to Alias::new("polygon") Add enum type for writer * Add type * Add support for PostgreSQL types Fix a few typos I found while digging through the source code * Add tests for checking the correctness of PostgreSQL enum parsing and processing * Gate `PgEnum` and its impl block under the `sqlx` feature to allow the ` #[derive(sqlx::FromRow, Debug)]` to be used to derive an sqlx row for handling PostgreSQL enums * Add support for fetching enums * Move types into types files under postgres::def::Type Add documentation on types Output the result by calling `discover_enum` on `SchemaDiscovery` * Add method to parse a raw SQL create query for enum creation Add missing documentation for the added types for enum creation * Test case to discover all the enums in a given database schema Write into SQL and then parse the raw SQL asserting that all discovered enums are the same as their raw SQL queries * Solve issues with github actions not detecting types * Add feature flag for new enum type and associated functions * Switch to using re-exported sqlx types within sea-schema * Fix CI errors * Support enums with crazy names that include special characters * Add support for ordered Vecs * Add tests for discovery of enums Remove redundant module postgres_enum from the tests dir * Ensure a custom enum type is dropped first from the database so that CI runs successfully * Refactoring * Ensures the writer derives the enum name from the EnumDef * Refactoring * Refactoring * Refactoring * Testing enum column... * Refactoring * Refactoring * Refactoring * Fix test * Refactoring * Refactoring * Refactoring * Cleanup Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
What should be command line interface?
First, we should read config from
.env
.migrate
command for schema migrationgenerate
command for code generation# to generate entity files sea-orm-cli generate entity
The text was updated successfully, but these errors were encountered: