Cassandra.Ecto v0.5.1 Cassandra.Types

Represents custom Cassandra types.

Example

schema "posts" do
  field :title,    :string
  field :text,     :string
  field :public,   :boolean
  field :tags,     {:array, :string}
  field :location, Cassandra.Types.Tuple
  field :links,    {:map, :string}
  embeds_many :comments, Comment
  belongs_to  :author,   User
  timestamps()
end

TODO: current implementation is quite useless. Next step is to implement custom composite types on Ecto level.