Connection
extends AbstractConnectionMiddleware
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- __destruct() : mixed
- beginTransaction() : mixed
- {@inheritDoc}
- commit() : mixed
- {@inheritDoc}
- exec() : int
- getNativeConnection() : resource|object
- getServerVersion() : string
- Returns information about the version of the database server connected to.
- lastInsertId() : mixed
- {@inheritDoc}
- prepare() : Statement
- query() : Result
- quote() : mixed
- {@inheritDoc}
- rollBack() : mixed
- {@inheritDoc}
Properties
$logger
private
LoggerInterface
$logger
$wrappedConnection
private
Connection
$wrappedConnection
Methods
__construct()
public
__construct(Connection $wrappedConnection) : mixed
Parameters
- $wrappedConnection : Connection
__destruct()
public
__destruct() : mixed
beginTransaction()
{@inheritDoc}
public
beginTransaction() : mixed
commit()
{@inheritDoc}
public
commit() : mixed
exec()
public
exec(string $sql) : int
Parameters
- $sql : string
Return values
intgetNativeConnection()
public
getNativeConnection() : resource|object
Return values
resource|objectgetServerVersion()
Returns information about the version of the database server connected to.
public
getServerVersion() : string
Return values
stringlastInsertId()
{@inheritDoc}
public
lastInsertId([mixed $name = null ]) : mixed
Parameters
- $name : mixed = null
prepare()
public
prepare(string $sql) : Statement
Parameters
- $sql : string
Return values
Statementquery()
public
query(string $sql) : Result
Parameters
- $sql : string
Return values
Resultquote()
{@inheritDoc}
public
quote(mixed $value[, mixed $type = ParameterType::STRING ]) : mixed
Parameters
- $value : mixed
- $type : mixed = ParameterType::STRING
rollBack()
{@inheritDoc}
public
rollBack() : mixed