Class Statement
A database statement.
- PDOStatement implements Traversable
- ICanBoogie\ActiveRecord\Statement
Methods summary
public
|
|
public
|
|
public
|
|
public
mixed
|
#
fetchAndClose( integer $fetch_style =
Fetches the first row of the result set and closes the cursor. |
public
string
|
#
fetchColumnAndClose( integer $column_number = 0 )
Fetches a column of the first row of the result set and closes the cursor. |
public
array
|
#
fetchGroups( integer $fetch_style, mixed $fetch_argument = null, array $ctor_args = [] )
Returns an array containing all of the result set rows (FETCH_LAZY supported) |
public
|
|
public
|
#
all( mixed $fetch_style = null, mixed $column_index = null, array $ctor_args = null )
Alias for |
Methods inherited from PDOStatement
__sleep()
,
__wakeup()
,
bindColumn()
,
bindParam()
,
bindValue()
,
closeCursor()
,
columnCount()
,
debugDumpParams()
,
errorCode()
,
errorInfo()
,
fetch()
,
fetchAll()
,
fetchColumn()
,
fetchObject()
,
getAttribute()
,
getColumnMeta()
,
nextRowset()
,
rowCount()
,
setAttribute()
,
setFetchMode()
Magic methods summary
Properties summary
public
|
$connection |
#
The database connection that created this statement. |
Properties inherited from PDOStatement
Magic properties
public read-only
array
|
$all |
|
#
An array with the matching records. |
public read-only
mixed
|
$one |
|
#
The first matching record. |
public read-only
string
|
$rc |
|
#
The value of the first column of the first row. |