Connection
in package
implements
ServerInfoAwareConnection
FinalYes
Table of Contents
Interfaces
- ServerInfoAwareConnection
- Contract for a connection that is able to provide information about the server it is connected to.
Properties
- $connection : PDO
Methods
- beginTransaction() : bool
- commit() : bool
- exec() : int
- getNativeConnection() : PDO
- getServerVersion() : string
- Returns information about the version 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
boolcommit()
public
commit() : bool
Return values
boolexec()
public
exec(string $sql) : int
Parameters
- $sql : string
Return values
intgetNativeConnection()
public
getNativeConnection() : PDO
Return values
PDOgetServerVersion()
Returns information about the version of the database server connected to.
public
getServerVersion() : string
Return values
stringgetWrappedConnection()
public
getWrappedConnection() : PDO
Tags
Return values
PDOlastInsertId()
{@inheritDoc}
public
lastInsertId([mixed $name = null ]) : mixed
Parameters
- $name : mixed = null
prepare()
{@inheritDoc}
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()
public
rollBack() : bool