alias Cassandra::DBApi::Primitive

Overview

These types that can be supplied to queries as bound parameters without wrapping them with Cassandra::DBApi::Any. Example:

db.exec("insert into posts (id, title) values (?, ?)", 1, "A Post")

They are also returned as query results:

db.query("select id, title from posts") do |rs|
  rs.each do
    puts rs.read(Int32), rs.read(String)
  end
end

Alias Definition

Bool | Cassandra::DBApi::Date | Cassandra::DBApi::Time | Cassandra::DBApi::TimeUuid | Cassandra::DBApi::Uuid | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | Slice(UInt8) | String | Time | Nil

Defined in:

cassandra/dbapi.cr