- replace
structopt
withclap
- replace dependency
Inflector
withheck
- add dependency
thiserror
- remove dependency
anyhow
- add subcommand to generate shell completions
- function
generate_files
now takes in&Path
s instead ofPathBuf
s - remove
to_singular
name generations - add option
--create-str
to setCreate*
structs string & byte types - add option
--update-str
to setUpdate*
structs string & byte type - add option
--single-model-file
to only generate a single file instead of a directory withmod.rs
andgenerated.rs
- add option
--readonly-prefix
and--readonly-suffix
to treat a matching name as a readonly struct - add option
--no-crud
to not generate anyimpl
blocks - derive generation has been refactored and now only necessary derives are added to a given struct
- reduce amount of empty-newlines
- add
dsync::Error
(anddsync::error
module) - replace most
panic!
,.expect
and some.unwrap
withResult
s - fix nullable unsigned integers not resulting in
Option<u*>
- derive
Default
for allUpdate*
structs - use
@generated
file signature to exclude the files from formatting - rename
type Connection =
totype ConnectionType =
to lessen naming conflicts - add many doc-comments to fields and functions
- list changes to files (unchanged, modified, deleted)
- generate doc-comments for generated structs, fields and functions
- add derive
QueryableByName
to read-structs - add derive
PartialEq
to update-structs - add new experimental filters (behind the
advanced-queries
feature flag) - move function
paginate
behindadvanced-queries
feature flag - split
GenerationConfig
into required and optional parts (GenerationConfigOpts
) (fixes #92) - added compile tests to actually verify all options compiling
- used for testing publishing CI
- add option
schema-path
andmodel-path
to specify custom paths for diesel schemas input and model output
- add option
--no-serde
to disable serde derives
- fixes for diesel
2.1.0