Skip to content

Commit bad71ba

Browse files
authored
Update 01-sea-orm-cli.md (#149)
1 parent 8223f01 commit bad71ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

SeaORM/versioned_docs/version-1.1.x/04-generate-entity/01-sea-orm-cli.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ Command line options:
6767
- `--enum-extra-attributes`: append extra attributes to generated enums
6868
- `--seaography`: generate addition structs in entities for seaography integration
6969

70+
since 1.1.6:
71+
- `--with-prelude`:
72+
- `all`: the default value, cli tool behaves as it does right now (so no breaking changes), it will generates the prelude.rs file and add it to mod.rs (or lib.rs).
73+
- `none`: it WILL NOT generates the prelude.rs file and it WILL NOT add it to mod.rs.
74+
- `all-allow-unused-imports`: it generates the prelude.rs file and add it to mod.rs, BUT the following inner attribute `#![allow(unused_imports)]` is appended to prelude.rs heading.
75+
- `--impl-active-model-behavior`: generate empty `ActiveModelBehavior` impls
76+
- `--acquire_timeout`: acquire timeout in seconds of the connection used for schema discovery
77+
7078
```shell
7179
# Generate entity files of database `bakery` to `entity/src`
7280
sea-orm-cli generate entity -u protocol://username:password@localhost/bakery -o entity/src

0 commit comments

Comments
 (0)