abstract class DB::Statement
- DB::Statement
- Reference
- Object
Overview
Represents a prepared query in a Connection
.
It should be created by QueryMethods
.
Note to implementors
- Subclass
Statements
Statements
are created from a custom driverConnection#prepare
method.#perform_query
executes a query that is expected to return aResultSet
#perform_exec
executes a query that is expected to return anExecResult
#do_close
is called to release the statement resources.
Included Modules
Defined in:
db/statement.crClass Method Summary
Instance Method Summary
- #exec(args : Array)
- #exec
- #exec(*args)
- #query(args : Array)
- #query
- #query(*args)
- #release_connection
Instance methods inherited from module DB::StatementMethods
exec(args : Array) : ExecResultexec : ExecResult
exec(*args) : ExecResult exec, query(*args, &block)
query(args : Array) : ResultSet
query : ResultSet
query(*args) : ResultSet query, scalar(*args) scalar