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 upNot possible to use Array<SomeTuple> as SqlType #425
Comments
This comment has been minimized.
|
We don't currently support tuple types in PG. They're not currently on the list of types that are high priority to support. |
This comment has been minimized.
|
Clearing out old issues.... This is basically just "we don't support PG tuples". I think support for this will probably need to come from another crate. I don't think we can make this ergonomic without variadic generics. If nothing else, the PG type Closing, as this is not immediately actionable. |
sgrif
closed this
Dec 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
weiznich commentedSep 4, 2016
It seems not to be possible to use
Array<SomeTuple>as SqlType.Think of the following query:
This results in
(A::SqlType, Array<B::SqlType>)as SqlType whereB::SqlType' is a Tuple (e.g.(BigInt, Text, BigInt)`).FromSqlandFromSqlRoware implemented forArrayfor each SqlType that has aFromSqlimplementation. Tuples implement however onlyFromSqlRow