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 : Connection
- $logger : LoggerInterface
- __destruct() : mixed
- beginTransaction() : mixed
- {@inheritDoc}
- commit() : mixed
- {@inheritDoc}
- exec() : int
- getServerVersion() : string
- Returns the version number of the database server connected to.
- lastInsertId() : mixed
- {@inheritDoc}
- prepare() : Statement
- query() : Result
- quote() : mixed
- {@inheritDoc}
- rollBack() : mixed
- {@inheritDoc}
Properties
$connection
private
Connection
$connection
$logger
private
LoggerInterface
$logger
Methods
__destruct()
public
__destruct() : mixed
Return values
mixed —beginTransaction()
{@inheritDoc}
public
beginTransaction() : mixed
Return values
mixed —commit()
{@inheritDoc}
public
commit() : mixed
Return values
mixed —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 —lastInsertId()
{@inheritDoc}
public
lastInsertId([mixed $name = null ]) : mixed
Parameters
- $name : mixed = null
Return values
mixed —prepare()
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()
{@inheritDoc}
public
rollBack() : mixed