src/schema.rs is generated by command diesel print-schema src/schema.rs
It was a little bit broken because of the missing table in diesel.toml. Also, @telezhnaya has introduced aggregated__lockups view in SQL and we need it as a table! in schema. To avoid doing it manually I've made use of patch_file field from diesel-orm documentation
In addition, it removes unused imports which I would do manually for a year.
src/schema.rs
is generated by commanddiesel print-schema src/schema.rs
It was a little bit broken because of the missing table in
diesel.toml
. Also, @telezhnaya has introducedaggregated__lockups
view in SQL and we need it as atable!
in schema. To avoid doing it manually I've made use ofpatch_file
field fromdiesel-orm
documentationIn addition, it removes unused imports which I would do manually for a year.