class Cequel::Type::Date
`date` columns store dates.
@see cassandra.apache.org/doc/cql3/CQL-3.0.html#usingdates
CQL3 documentation for date columns
Public Instance Methods
cast(value)
click to toggle source
# File lib/cequel/type.rb, line 414 def cast(value) if value.is_a?(::String) then ::Date.parse(value) elsif value.respond_to?(:to_date) then value.to_date else ::Date.parse(value.to_s) end end
internal_names()
click to toggle source
# File lib/cequel/type.rb, line 410 def internal_names ['org.apache.cassandra.db.marshal.DateType'] end