abstract class DB::Statement
- DB::Statement
- Reference
- Object
Overview
Represents a 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.crConstructors
Instance Method Summary
- #exec : DB::ExecResult
- #exec(*args_, args : Array? = nil) : DB::ExecResult
- #query : DB::ResultSet
- #query(*args_, args : Array? = nil) : DB::ResultSet
- #release_connection
Instance methods inherited from module DB::StatementMethods
exec : ExecResultexec(*args_, args : Array? = nil) : ExecResult exec, query(*args_, args : Array? = nil, &)
query : ResultSet
query(*args_, args : Array? = nil) : ResultSet query, scalar(*args_, args : Array? = nil) scalar