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 up[feature request] Support nested Queryable, Identifiable (and like those) #1006
Comments
killercup
added
discussion desired
enhancement
labels
Jul 11, 2017
sgrif
referenced this issue
Sep 21, 2017
Merged
Allow `#[derive(Queryable)]` for structs with `Queryable` fields #1184
sgrif
closed this
in
#1184
Sep 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KeenS commentedJul 7, 2017
Current diesel doesn't support nested Queryables nor Identifiables but I'd like to write code like below:
In summary,
As far as
Queryableis concerned, nested deriving itself is possible but impossible toget_resultfrom any isomorphic sql types. (This may not the matter ofQueryabelbut the matter ofFromSqlandToSql.)Structs like
struct UserId(i32);is very useful to avoid confusions when handling many table ids. Is it possibel to implement these features?