EctoPSQLExtras behaviour (ecto_psql_extras v0.4.4) View Source

The entry point for each function.

Link to this section Summary

Functions

Run all_locks query on repo, in the given format.

Run bloat query on repo, in the given format.

Run blocking query on repo, in the given format.

Run cache_hit query on repo, in the given format.

Run calls query on repo, in the given format.

Run extensions query on repo, in the given format.

Run index_cache_hit query on repo, in the given format.

Run index_size query on repo, in the given format.

Run index_usage query on repo, in the given format.

Run kill_all query on repo, in the given format.

Run locks query on repo, in the given format.

Run long_running_queries query on repo, in the given format.

Run mandelbrot query on repo, in the given format.

Run outliers query on repo, in the given format.

Returns all queries and their modules.

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

Run records_rank query on repo, in the given format.

Run seq_scans query on repo, in the given format.

Run table_cache_hit query on repo, in the given format.

Run table_indexes_size query on repo, in the given format.

Run table_size query on repo, in the given format.

Run total_index_size query on repo, in the given format.

Run total_table_size query on repo, in the given format.

Run unused_indexes query on repo, in the given format.

Run vacuum_stats query on repo, in the given format.

Link to this section Functions

Link to this function

all_locks(repo, format \\ :ascii)

View Source

Run all_locks query on repo, in the given format.

format is either :ascii or :raw

Link to this function

bloat(repo, format \\ :ascii)

View Source

Run bloat query on repo, in the given format.

format is either :ascii or :raw

Link to this function

blocking(repo, format \\ :ascii)

View Source

Run blocking query on repo, in the given format.

format is either :ascii or :raw

Link to this function

cache_hit(repo, format \\ :ascii)

View Source

Run cache_hit query on repo, in the given format.

format is either :ascii or :raw

Link to this function

calls(repo, format \\ :ascii)

View Source

Run calls query on repo, in the given format.

format is either :ascii or :raw

Link to this function

extensions(repo, format \\ :ascii)

View Source

Run extensions query on repo, in the given format.

format is either :ascii or :raw

Link to this function

index_cache_hit(repo, format \\ :ascii)

View Source

Run index_cache_hit query on repo, in the given format.

format is either :ascii or :raw

Link to this function

index_size(repo, format \\ :ascii)

View Source

Run index_size query on repo, in the given format.

format is either :ascii or :raw

Link to this function

index_usage(repo, format \\ :ascii)

View Source

Run index_usage query on repo, in the given format.

format is either :ascii or :raw

Link to this function

kill_all(repo, format \\ :ascii)

View Source

Run kill_all query on repo, in the given format.

format is either :ascii or :raw

Link to this function

locks(repo, format \\ :ascii)

View Source

Run locks query on repo, in the given format.

format is either :ascii or :raw

Link to this function

long_running_queries(repo, format \\ :ascii)

View Source

Run long_running_queries query on repo, in the given format.

format is either :ascii or :raw

Link to this function

mandelbrot(repo, format \\ :ascii)

View Source

Run mandelbrot query on repo, in the given format.

format is either :ascii or :raw

Link to this function

outliers(repo, format \\ :ascii)

View Source

Run outliers query on repo, in the given format.

format is either :ascii or :raw

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 function

records_rank(repo, format \\ :ascii)

View Source

Run records_rank query on repo, in the given format.

format is either :ascii or :raw

Link to this function

seq_scans(repo, format \\ :ascii)

View Source

Run seq_scans query on repo, in the given format.

format is either :ascii or :raw

Link to this function

table_cache_hit(repo, format \\ :ascii)

View Source

Run table_cache_hit query on repo, in the given format.

format is either :ascii or :raw

Link to this function

table_indexes_size(repo, format \\ :ascii)

View Source

Run table_indexes_size query on repo, in the given format.

format is either :ascii or :raw

Link to this function

table_size(repo, format \\ :ascii)

View Source

Run table_size query on repo, in the given format.

format is either :ascii or :raw

Link to this function

total_index_size(repo, format \\ :ascii)

View Source

Run total_index_size query on repo, in the given format.

format is either :ascii or :raw

Link to this function

total_table_size(repo, format \\ :ascii)

View Source

Run total_table_size query on repo, in the given format.

format is either :ascii or :raw

Link to this function

unused_indexes(repo, format \\ :ascii)

View Source

Run unused_indexes query on repo, in the given format.

format is either :ascii or :raw

Link to this function

vacuum_stats(repo, format \\ :ascii)

View Source

Run vacuum_stats query 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()