You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SeaORM/versioned_docs/version-1.1.x/04-generate-entity/01-sea-orm-cli.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,14 @@ Command line options:
67
67
-`--enum-extra-attributes`: append extra attributes to generated enums
68
68
-`--seaography`: generate addition structs in entities for seaography integration
69
69
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.
0 commit comments