mediatekformation

Connection
in package
implements ServerInfoAwareConnection

Portability wrapper for a Connection.

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

PORTABILITY_ALL  = 255
PORTABILITY_EMPTY_TO_NULL  = 4
PORTABILITY_FIX_CASE  = 8
PORTABILITY_NONE  = 0
PORTABILITY_RTRIM  = 1
$connection  : Connection
$converter  : Converter
__construct()  : 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}

Constants

PORTABILITY_ALL

public mixed PORTABILITY_ALL = 255

PORTABILITY_EMPTY_TO_NULL

public mixed PORTABILITY_EMPTY_TO_NULL = 4

PORTABILITY_FIX_CASE

public mixed PORTABILITY_FIX_CASE = 8

PORTABILITY_NONE

public mixed PORTABILITY_NONE = 0

PORTABILITY_RTRIM

public mixed PORTABILITY_RTRIM = 1

Properties

Methods

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

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
Return values
mixed

Search results