Class Statement
A database statement.
- PDOStatement implements Traversable
- ICanBoogie\ActiveRecord\Statement uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
fetchAndClose( integer $fetch_style = \PDO::FETCH_BOTH, integer $cursor_orientation = \PDO::FETCH_ORI_NEXT, integer $cursor_offset = 0 )
Fetches the first row of the result set and closes the cursor. |
protected
|
|
public
string
|
#
fetchColumnAndClose( integer $column_number = 0 )
Fetches a column of the first row of the result set and closes the cursor. |
protected
|
|
public
|
|
protected
|
|
protected
array
|
Methods inherited from PDOStatement
__sleep()
,
__wakeup()
,
bindColumn()
,
bindParam()
,
bindValue()
,
closeCursor()
,
columnCount()
,
debugDumpParams()
,
errorCode()
,
errorInfo()
,
fetch()
,
fetchAll()
,
fetchColumn()
,
fetchObject()
,
getAttribute()
,
getColumnMeta()
,
nextRowset()
,
rowCount()
,
setAttribute()
,
setFetchMode()
Properties summary
public
|
$connection
The database connection that created this statement. |
Properties inherited from PDOStatement
$queryString
Magic properties
public read-only
array
|
$all
An array with the matching records. |
public read-only
array
|
$pairs
An array of key/value pairs, where key is the value of the first column and value the value of the second column. |
public read-only
mixed
|
$one
The first matching record. |
public read-only
string
|
$rc
The value of the first column of the first row. |