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
It would be great if you could add support for BSON marshal/unmarshal as an additional flag, similar to the existing '-json' or '-sql' flags. When the '-bson' flag is enabled, the generated code should include methods that implement the following APIs from the repository:
"go.mongodb.org/mongo-driver/bson"
required interfaces:
type Marshaler interface {
MarshalBSON() ([]byte, error)
}
type ValueMarshaler interface {
MarshalBSONValue() (bsontype.Type, []byte, error)
}
type Unmarshaler interface {
UnmarshalBSON([]byte) error
}
type ValueUnmarshaler interface {
UnmarshalBSONValue(bsontype.Type, []byte) error
}
also the following interfaces for using the enum as a key in a map:
Hi,
It would be great if you could add support for BSON marshal/unmarshal as an additional flag, similar to the existing '-json' or '-sql' flags. When the '-bson' flag is enabled, the generated code should include methods that implement the following APIs from the repository:
"go.mongodb.org/mongo-driver/bson"
required interfaces:
also the following interfaces for using the enum as a key in a map:
"go.mongodb.org/mongo-driver/bson/bsoncodec/map_codec.go"
Thanks!
The text was updated successfully, but these errors were encountered: