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
I would be willing to submit a PR for this, but I am not sure where to start. Would it be as simple as adding an extra case in codecs.*.Encode methods ?
The text was updated successfully, but these errors were encountered:
AFAIK there are currently two ways to bind optional or non-primitive type values with EdgeDB:
edgedbtypes
, e.g.OptionalStr
, which cannot be extended with additional methodsEdgeDB{*}Marshaler
interfaces, which is cumbersome when you have to do it for multiple typesWould it be possible to expose an interface that custom wrappers for EdgeDB-compatible types could implement ?
Something like:
EdgeDBTypeWrapper.Value()
could then be used internally to retrieve the wrapped type and marshal/unmarshal values when interacting with EdgeDB.Example use-case:
I would be willing to submit a PR for this, but I am not sure where to start. Would it be as simple as adding an extra case in
codecs.*.Encode
methods ?The text was updated successfully, but these errors were encountered: