Crates.io | sea-orm-migration |
lib.rs | sea-orm-migration |
version | 1.1.1 |
source | src |
created_at | 2022-05-09 16:10:21.658157 |
updated_at | 2024-11-04 01:04:09.442158 |
description | Migration utility for SeaORM |
homepage | https://www.sea-ql.org/SeaORM |
repository | https://github.com/SeaQL/sea-orm |
max_upload_size | |
id | 583369 |
size | 75,201 |
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