Open oharlem opened 8 years ago
Hi @mpmlj ,
For case 3 you can use RegisterMapDecoderHook to provide function that can converts strings to UUID type (or vice versa). This will help to decode Documents to maps/structs with UUID. Still, Documents itself will contain raw string values.
For case 1-2 I think the right way will be to allow conversion to string via TextMarshaler interface. Does the package you are using provides implementation for this interface?
Hi,
I'm using Cassandra with OrientDB in one system and have to handle uuid<->string conversions throughout the app having to store as a string in OrientDB, while using native uuid/timeuuid in Cassandra. It would be great to be able to use actual UUID type with queries, not a string value.
Currently:
INSERT INTO Users SET userID = ?
, p.UserID))INSERT INTO Users SET userID = ?
, p.UserID.String()))Thank you, D.