View Source Exandra.Counter (exandra v0.11.0)

Ecto.Type for counters.

examples

Examples

schema "page_views" do
  field :url, :string
  field :views, Exandra.Counter
end

Link to this section Summary

Types

t()

The type for an Exandra counter.

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Link to this section Types

@type t() :: integer()

The type for an Exandra counter.

Link to this section Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.