Crates.io | sea-orm-migration |
lib.rs | sea-orm-migration |
version | |
source | src |
created_at | 2022-05-09 16:10:21.658157 |
updated_at | 2024-12-02 07:03:19.959672 |
description | Migration utility for SeaORM |
homepage | https://www.sea-ql.org/SeaORM |
repository | https://github.com/SeaQL/sea-orm |
max_upload_size | |
id | 583369 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Install and Usage:
> cargo install sea-orm-cli
> sea-orm-cli help
Or:
> cargo install --bin sea
> sea help
Getting Help:
cargo run -- -h
# MySQL (`--database-schema` option is ignored)
cargo run -- generate entity -u mysql://sea:sea@localhost/bakery -o out
# SQLite (`--database-schema` option is ignored)
cargo run -- generate entity -u sqlite://bakery.db -o out
# PostgreSQL
cargo run -- generate entity -u postgres://sea:sea@localhost/bakery -s public -o out
cargo run -- migrate init
cargo run -- migrate
cargo run -- migrate up
cargo run -- migrate up -n 10
cargo run -- migrate down
cargo run -- migrate down -n 10
cargo run -- migrate fresh
cargo run -- migrate refresh
cargo run -- migrate reset
cargo run -- migrate status