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 upGenerate table by deriving Queriable #40
Comments
This comment has been minimized.
|
I do not like the idea of generating a table from |
This comment has been minimized.
|
Forgot to reference this from the other PR. First pass at this is #49 -- There will be an additional macro which loads table names from schema and calls that one automatically. |
sgrif
closed this
in
272d63d
Dec 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
defyrlt commentedDec 2, 2015
In issue #36 I was trying to get example with
#[derive(Queriable)]to work and one of the things that confused me is that you still have to make atable!call and hand-write all the column types.Here I'm proposing to make
Queriablesmart enough to generate appropriate table stuff or eventable!call so you won't have to do it manually. For some cases you might want to manually set the type of the column, e.gP.S @sgrif thanks for all the great work you've done! I'm very excited about query builder/ORM in Rust.