Connection
in package
implements
ServerInfoAwareConnection
Interfaces, Classes, Traits and Enums
- ServerInfoAwareConnection
- Contract for a connection that is able to provide information about the server it is connected to.
Table of Contents
- $connection : PDO
- beginTransaction() : bool
- commit() : bool
- exec() : int
- getServerVersion() : string
- Returns the version number of the database server connected to.
- getWrappedConnection() : PDO
- lastInsertId() : mixed
- {@inheritdoc}
- prepare() : Statement
- {@inheritDoc}
- query() : Result
- quote() : mixed
- {@inheritdoc}
- rollBack() : bool
Properties
$connection
private
PDO
$connection
Methods
beginTransaction()
public
beginTransaction() : bool
Return values
bool —commit()
public
commit() : bool
Return values
bool —exec()
public
exec(string $sql) : int
Parameters
- $sql : string
Return values
int —getServerVersion()
Returns the version number of the database server connected to.
public
getServerVersion() : string
Return values
string —getWrappedConnection()
public
getWrappedConnection() : PDO
Return values
PDO —lastInsertId()
{@inheritdoc}
public
lastInsertId([mixed $name = null ]) : mixed
Parameters
- $name : mixed = null
Return values
mixed —prepare()
{@inheritDoc}
public
prepare(string $sql) : Statement
Parameters
- $sql : string
Return values
Statement —query()
public
query(string $sql) : Result
Parameters
- $sql : string
Return values
Result —quote()
{@inheritdoc}
public
quote(mixed $value[, mixed $type = ParameterType::STRING ]) : mixed
Parameters
- $value : mixed
- $type : mixed = ParameterType::STRING
Return values
mixed —rollBack()
public
rollBack() : bool