Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Support for custom types (UUID, etc) #52

@oharlem

Description

@oharlem

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:

  1. There's an error if I'm trying to bind a UUID value, ex.
    ...Command(orient.NewSQLCommand(INSERT INTO Users SET userID = ?, p.UserID))
  2. Workaround is to convert to a string manually:
    ....Command(orient.NewSQLCommand(INSERT INTO Users SET userID = ?, p.UserID.String()))
  3. On reading from a query, need to read as a string value and then to parse into UUID again, ex. uuid.Parse(uuidStr).

Thank you,
D.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions