Orange-OpenSource / YACassandraPDO

Cassandra PDO Driver fork
Apache License 2.0
84 stars 32 forks source link

Inserting TimeUUIDs? #46

Open guice opened 10 years ago

guice commented 10 years ago

How do I insert data into TimeUUID column? I didn't find any examples of that within the unit tests.

I need to insert specific dates/times into TimeUUID columns for data migration from one DB into Cassandra.

guice commented 10 years ago

Is there a way to create TimeUUIDs with YACassandraPDO? Or in general?

FelikZ commented 10 years ago

You need external library to generate TimeUUIDs and then use them via YACassandraPDO.

sandvige commented 10 years ago

According to how other drivers are working, this driver should provide utility functions to convert TimeUUID to DateTime, DateTime to TimeUUID, generating UUID (each versions), be able to generate a min / max UUID, etc.