Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upderive(Table) functionality #1668
Comments
This comment has been minimized.
|
I think you should publish this as a separate crate and see how it goes. |
sgrif
closed this
Apr 29, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
theduke commentedApr 29, 2018
•
edited
Quite a while ago I wrote a small crate that allows deriving a Table implementation for a struct.
I never published it, but used it in multiple projects: https://github.com/theduke/diesel_derive_table
I think it's quite handy.
Especially with something like CockroachDB where
print-schemadoes not work it helps to prevent quite a bit of duplication.I talked with @sgrif a bit in Gitter before implementing this, and I remember him not being very enthused about it.
I still think it's really useful as an alternative workflow.
If the maintainers think this would be nice to have in core, I can whip up a PR.
Sample usage: