Cassandrax.Queryable protocol (Cassandrax v0.4.0) View Source
Converts a data structure into an Cassandrax.Query
.
Example
defmodule User do
use Cassandrax.Schema
@primary_key [:id]
table "users" do
field :id, :integer
end
end
%Cassandrax.Query{from: "users", schema: User} = Cassandrax.Queryable.to_query(User)
Link to this section Summary
Functions
Converts the given data
into an Cassandrax.Query
.
Link to this section Types
Specs
t() :: term()
All the types that implement this protocol.
Link to this section Functions
Converts the given data
into an Cassandrax.Query
.
May raise a CompileError if the data is invalid.