myxql v0.2.0 MyXQL.Query View Source
Query struct returned from a successfully prepared query.
Its public fields are:
:name
- The name of the prepared statement;:num_params
- The number of parameter placeholders;:statement
- The prepared statement
Named and Unnamed Queries
Named queries are identified by the non-empty value in :name
field
and are meant to be re-used.
Unnamed queries, with :name
equal to ""
, are automatically closed
after being executed.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %MyXQL.Query{
name: iodata(),
num_params: non_neg_integer(),
ref: reference(),
statement: iodata(),
statement_id: term()
}
t() :: %MyXQL.Query{ name: iodata(), num_params: non_neg_integer(), ref: reference(), statement: iodata(), statement_id: term() }