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.

Properties

$connection  : resource
$executionMode  : ExecutionMode
$parser  : Parser

Methods

beginTransaction()  : bool
commit()  : bool
exec()  : int
getNativeConnection()  : resource
getServerVersion()  : string
Returns information about the version of the database server connected to.
lastInsertId()  : int|false
{@inheritDoc}
prepare()  : Statement
query()  : Result
quote()  : mixed
{@inheritDoc}
rollBack()  : bool

Properties

$executionMode

private ExecutionMode $executionMode

Methods

beginTransaction()

public beginTransaction() : bool
Return values
bool

commit()

public commit() : bool
Return values
bool

getNativeConnection()

public getNativeConnection() : resource
Return values
resource

getServerVersion()

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

public getServerVersion() : string
Return values
string

lastInsertId()

{@inheritDoc}

public lastInsertId([string|null $name = null ]) : int|false
Parameters
$name : string|null = null
Tags
throws
Exception
Return values
int|false

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