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
Looking forward a bit into an improved high level Spanner client, our as_value and as_list_value methods could be improved.
They provided an easy way to support both client sdks simultaneously, but we could improve how types are converted to protobuf Values via a trait, similar to diesel's ToSql trait.
Say a ToSpannerValue trait with impls for basic types like String, i32 (and in our specific case, SyncTimestamp). And an impl for either Vec<V> or possibly a fancy one like T: where T: Iterator<Item=V> (both where V: ToSpannerValue) if possible
The text was updated successfully, but these errors were encountered:
Looking forward a bit into an improved high level Spanner client, our
as_value
andas_list_value
methods could be improved.They provided an easy way to support both client sdks simultaneously, but we could improve how types are converted to protobuf Values via a trait, similar to diesel's
ToSql
trait.Say a
ToSpannerValue
trait with impls for basic types like String, i32 (and in our specific case, SyncTimestamp). And an impl for eitherVec<V>
or possibly a fancy one likeT: where T: Iterator<Item=V>
(bothwhere V: ToSpannerValue
) if possibleThe text was updated successfully, but these errors were encountered: