EctoMySQLExtras behaviour (Ecto MySQL Extras v0.3.1) View Source
Documentation for EctoMySQLExtras
.
Link to this section 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}
.
Link to this section Types
Specs
Link to this section Callbacks
Specs
Link to this section Functions
Specs
db_settings(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
db_status(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
index_size(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
long_running_queries(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
plugins(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
Specs
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.
Specs
records_rank(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
table_indexes_size(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
table_size(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
total_index_size(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
total_table_size(repo(), keyword()) :: :ok | MyXQL.Result.t()
Specs
unused_indexes(repo(), keyword()) :: :ok | MyXQL.Result.t()