View Source EctoMySQLExtras behaviour (Ecto MySQL Extras v0.6.2)
Documentation for EctoMySQLExtras
.
Summary
Functions
Run a query with name
, on repo
, in the given format
.
The repo
can be a module name or a tuple like {module, node}
.
Types
Callbacks
Functions
@spec connections( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec db_settings( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec db_status( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec dirty_pages_ratio( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec index_size( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec long_running_queries( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec plugins( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec query(atom(), repo(), keyword()) :: :ok | MyXQL.Result.t()
Run a query with name
, on repo
, in the given format
.
The repo
can be a module name or a tuple like {module, node}
.
Options
:format
- The format that results will return. Accepts:ascii
or:raw
. If:ascii
a nice table printed in ASCII - a string will be returned. Otherwise a result struct will be returned. This option is required.:args
- Overwrites the default arguments for the given query. You can check the defaults of each query in its modules defined in this project.:query_opts
- Overwrites the default options for the Ecto query. Defaults to [log: false]
@spec records_rank( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec table_cache( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec table_indexes_size( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec table_size( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec total_index_size( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec total_table_size( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec unused_indexes( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec waits_for_checkpoint( repo(), keyword() ) :: :ok | MyXQL.Result.t()
@spec waits_for_redolog( repo(), keyword() ) :: :ok | MyXQL.Result.t()