struct Cassandra::DBApi::TimeUuid

Overview

Represents the Cassandra timeuuid type.

Included Modules

Defined in:

cassandra/dbapi/types.cr

Constructors

Instance Method Summary

Instance methods inherited from module Cassandra::DBApi::CommonUuid

to_s to_s, to_unsafe to_unsafe

Constructor Detail

def self.new(s : String) #

Initialises the UUID from a string.


[View source]
def self.new(cass_uuid) #

Initialises the UUID from a Cassandra UUID.


[View source]
def self.new #

Autogenerates a Time UUID.


[View source]

Instance Method Detail

def to_time : ::Time #

Extracts the time part of the timeuuid.


[View source]