A statement represents a prepared-but-unexecuted SQL query.
Returns the value of the given column by index (1-based).
Returns the value of the given column by name.
Binds the parameter at the given index to an Int64.
Binds the parameter at the given index to an Int32.
Binds the parameter at the given index to an Int.
Binds a named parameter, using the :AAAA
naming scheme for parameters.
Binds a hash to this statement (the index
is ignored).
Binds the parameter at the given index to a BLOB.
Binds the parameter at the given index to a Float.
Binds the parameter at the given index to a String.
Closes this statement.
Returns true
if this statement is closed.
Returns the number of columns in this statement.
Returns the name of the column at the given index.
Returns the Type
of the column at the given index.
Returns the column names of this statement.
Executes this statement with the given binds and yields a ResultSet
that will be closed at the end of the block.
Executes this statement with the given binds and yields a ResultSet
that will be closed at the end of the block.
Executes this statement with a single BLOB bind and returns a ResultSet
.
Executes this statement with the given binds and returns a ResultSet
.
Executes this statement with the given binds and returns a ResultSet
.
Reset this statment, allowing to re-execute it with new binds.
Returns an Array(Type)
of this statement's columns.
Binds the parameter at the given index to an Int64.
Binds the parameter at the given index to an Int32.
Binds a named parameter, using the :AAAA
naming scheme for parameters.
Binds a hash to this statement (the index
is ignored).
Binds the parameter at the given index to a BLOB.
Binds the parameter at the given index to a Float.
Binds the parameter at the given index to a String.
Executes this statement with the given binds and yields a ResultSet
that
will be closed at the end of the block.
Executes this statement with the given binds and yields a ResultSet
that
will be closed at the end of the block.
Executes this statement with a single BLOB bind and returns a ResultSet
.
Executes this statement with the given binds and returns a ResultSet
.
Returns an Array(Type)
of this statement's columns. Note that the statement
must be executed in order for this to return sensible values, otherwise all types
will be NULL.