mediatekformation

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

OPTION_FLAGS  = 'flags'
Name of the option to set connection flags
$connection  : mysqli
beginTransaction()  : bool
commit()  : bool
exec()  : int
getServerVersion()  : string
Returns the version number of the database server connected to.
getWrappedResourceHandle()  : mysqli
Retrieves mysqli native resource handle.
lastInsertId()  : mixed
{@inheritdoc}
prepare()  : Statement
query()  : Result
quote()  : mixed
{@inheritdoc}
rollBack()  : bool

Constants

OPTION_FLAGS

Name of the option to set connection flags

public mixed OPTION_FLAGS = 'flags'

Properties

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

The server version detection includes a special case for MariaDB to support '5.5.5-' prefixed versions introduced in Maria 10+

Tags
link
https://jira.mariadb.org/browse/MDEV-4088
Return values
string

getWrappedResourceHandle()

Retrieves mysqli native resource handle.

public getWrappedResourceHandle() : mysqli

Could be used if part of your application is not using DBAL.

Return values
mysqli

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()

public rollBack() : bool
Return values
bool

Search results