Documentation

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.

Constants

OPTION_FLAGS  = 'flags'
Name of the option to set connection flags

Properties

$connection  : mysqli

Methods

beginTransaction()  : bool
commit()  : bool
exec()  : int
getNativeConnection()  : mysqli
getServerVersion()  : string
Returns information about the version 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

getNativeConnection()

public getNativeConnection() : mysqli
Return values
mysqli

getServerVersion()

Returns information about the version of the database server connected to.

public getServerVersion() : string
Return values
string

getWrappedResourceHandle()

Retrieves mysqli native resource handle.

public getWrappedResourceHandle() : mysqli

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

Tags
deprecated

Call getNativeConnection() instead.

Return values
mysqli

lastInsertId()

{@inheritDoc}

public lastInsertId([mixed $name = null ]) : mixed
Parameters
$name : mixed = null

quote()

{@inheritDoc}

public quote(mixed $value[, mixed $type = ParameterType::STRING ]) : mixed
Parameters
$value : mixed
$type : mixed = ParameterType::STRING

rollBack()

public rollBack() : bool
Return values
bool

        
On this page

Search results