Class Statement
A database statement.
- PDOStatement implements Traversable
- ┗ ICanBoogie\ActiveRecord\Statement uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public
mode( mixed $mode
)
: ICanBoogie\ActiveRecord\Statement
Set the fetch mode for the statement.
public
fetchAndClose( integer $fetch_style
= \PDO::FETCH_BOTH, integer $cursor_orientation
= \PDO::FETCH_ORI_NEXT, integer $cursor_offset
= 0 )
: mixed
Fetches the first row of the result set and closes the cursor.
public
fetchColumnAndClose( integer $column_number
= 0 )
: string
Fetches a column of the first row of the result set and closes the cursor.
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
: ICanBoogie\ActiveRecord\Connection
The database connection that created this statement.
Properties inherited from PDOStatement
$queryString