Cassandrax.Queryable protocol (Cassandrax v0.3.1) 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

Link to this section Functions

Converts the given data into an Cassandrax.Query.

May raise a CompileError if the data is invalid.