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 upSmall questions / propositions #74
Comments
This comment has been minimized.
|
The answer to both your questions is that SQL is not Rust, and this is ultimately the translation layer between them. As a user, you can think of a row as a tuple, and there's only options, never We could change The naming of |
sgrif
closed this
Jan 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tafia commentedDec 30, 2015
I have several questions/propositions regarding the current implementation:
Rowtrait: to me, looking atDbRow(only struct implementing it) it looks more like aValuethan an entire row ... I am not familiar with postgresql so it might be an implementation detail (to manage tuples?)is_null: IMHO rust traits should not haveis_nullfunctions. Some implementations could be 100% rust and as a result can't be null. What do you think?&Vec<_>to&[_]here ... which eventually leads to not creating aVechereDbResult: ending with...Resultusually means wrapping around rustResult, which is not the case. Proposition:DbOutorDbRows