EctoPSQLExtras behaviour (ecto_psql_extras v0.4.1) View Source

The entry point for each function.

Link to this section Summary

Functions

Returns all queries and their modules.

Run a query with name, on repo, in the given format.

Link to this section Functions

Returns all queries and their modules.

If a repository is given, it will be queried for extensions support and special queries will be included if available.

Link to this function

query(name, repo, format \\ :ascii)

View Source

Run a query with name, on repo, in the given format.

format is either :ascii or :raw.

Link to this section Callbacks

Specs

info() :: %{
  :title => binary(),
  :columns => [%{name: atom(), type: atom()}],
  optional(:order_by) => [{atom(), :asc | :desc}],
  optional(:limit) => pos_integer()
}

Specs

query() :: binary()