This Changelog only lists the changes done to this fork and since 0.0.13
- fix that a file is created if the file does not exist on
MarkedFile::new
- fix so that all entries in
common.rs
are properly new-lined - fix to not import
common.rs
if not required - add option
read-only-prefix
to set prefixes for tables to treat as read-only (likeview_
) - add option
no-impls
to not generate anyimpl Struct
s (likeread
,create
,paginate
) - add option
once-connection
to only output the connection type once incommon.rs
instead of in all files - add option
lessen-conflicts
to lessen conflict with diesel types (like having to importConnection
) - add option
create-str
to haveCreate*
structs be generated with&'a str
instead ofString
- add option
only-necessary-derives
to only generate the necessary diesel derives for a struct - add option
file-mode
to set a different mode than directoverwrite
- add option
once-common-structs
to only generate common structs once - replace dependency
inflector
withheck
(heck
is used bydiesel
andclap
)- remove converting struct names with
to_singular
- remove converting struct names with
- simplify implementation for how struct derives are generated (order of derives has changed)
- always end model files with a empty new line
- have less unnecessary new-lines (order of imports has changed)
- add rust doc-comments to all generated functions
- add rust doc-comments to all generated structs (not their fields)
- add rust doc-comments to all generated fields listing their column name
- add display on what happened to files (unchanged, modified, overwritten, deleted)
The First version of the fork
- Support diesel
2.1.0
(PR #51) - Option to disable
serde
output (PR #54) - Option to set custom model and schema path (PR #55)
- Some CI updates (PR #50)
- Separate library and binary into their own crates
- Change from
structop
to useclap
- Add cli completions thanks to
clap_completions
- Add cli completions thanks to
- Enable
anyhow
backtrace support - Add
Error
type for library (viathiserror
)- Replace many
panic
andexpect
with a Error - Enable
backtrace
for Error
- Replace many