You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SQL type should be Range<ST: CanAppearInRange>. We should provide an impl to/from SQL for (Bound<T>, Bound<T>) where T: FromSql<ST, Pg>. Bound is currently unstable, so we'll need to stick this behind the unstable feature. It appears to be on track for stabilization soon though, so I don't think we need to support any stable types.
For this to work with codegen we'll also need the following:
The impls for serialization/deserialization look pretty straightforward. Format appears to be a one byte set of flags (inclusive vs exclusive, whether start or end are unbounded), 4 byte length for upper value followed by data if present, 4 byte length for lower value followed by data if present.
The text was updated successfully, but these errors were encountered:
The SQL type should be
Range<ST: CanAppearInRange>
. We should provide an impl to/from SQL for(Bound<T>, Bound<T>) where T: FromSql<ST, Pg>
.Bound
is currently unstable, so we'll need to stick this behind the unstable feature. It appears to be on track for stabilization soon though, so I don't think we need to support any stable types.For this to work with codegen we'll also need the following:
The impls for serialization/deserialization look pretty straightforward. Format appears to be a one byte set of flags (inclusive vs exclusive, whether start or end are unbounded), 4 byte length for upper value followed by data if present, 4 byte length for lower value followed by data if present.
The text was updated successfully, but these errors were encountered: