ex_sive v0.1.0 ExSive
ExSive is a object query translator to Ecto.Query.
Summary
Macros
ExSive is meant to be used by a Ecto.Repo
Types
result ::
Ecto.Query.t |
{:error, :attribute_not_found | :predicat_not_found | :direction_not_found}
Functions
Specs
filter(Ecto.Queryable.t, %{optional(binary) => term}, ExSive.Config.t) :: result
Macros
ExSive is meant to be used by a Ecto.Repo.
When used, an optional default for ignore_erros can be provided. If ignore_erros is not provided, a default of true will be used.
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
use ExSive
end
defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :my_app
use ExSive, ignore_erros: true
end
When use is called, a filter function is defined in the Repo.