Class Connection

Summary

Fully Qualified Name: Zend\Db\Adapter\Driver\Pdo\Connection
Extends: AbstractConnection

Description

Methods

Name Description Defined By
__construct() Constructor Connection
beginTransaction() {@inheritDoc} Connection
commit() {@inheritDoc} Connection
connect() {@inheritDoc} Connection
disconnect() {@inheritDoc} AbstractConnection
execute() {@inheritDoc} Connection
getConnectionParameters() Get connection parameters AbstractConnection
getCurrentSchema() {@inheritDoc} Connection
getDriverName() Get driver name AbstractConnection
getDsn() Get the dsn string for this connection Connection
getLastGeneratedValue() {@inheritDoc} Connection
getProfiler() AbstractConnection
getResource() {@inheritDoc} AbstractConnection
inTransaction() Checks whether the connection is in transaction state. AbstractConnection
isConnected() {@inheritDoc} Connection
prepare() Prepare Connection
rollback() {@inheritDoc} Connection
setConnectionParameters() {@inheritDoc} Connection
setDriver() Set driver Connection
setProfiler() {@inheritDoc} AbstractConnection
setResource() Set resource Connection

Method Details

__construct()

Constructor

Parameter Name Type Description
$connectionParameters array|\PDO|null

Returns:

beginTransaction()

{@inheritDoc}

Returns:

commit()

{@inheritDoc}

Returns:

connect()

{@inheritDoc}

Returns:

disconnect()

{@inheritDoc}

Returns:

execute()

{@inheritDoc}

Parameter Name Type Description
$sql

Returns:

getConnectionParameters()

Get connection parameters

Returns: array

getCurrentSchema()

{@inheritDoc}

Returns:

getDriverName()

Get driver name

Returns: null|string

getDsn()

Get the dsn string for this connection

Returns: string

getLastGeneratedValue()

{@inheritDoc}

Parameter Name Type Description
$name string

Returns: string|null|bool

getProfiler()

Returns: null|\ProfilerInterface

getResource()

{@inheritDoc}

Returns: resource

inTransaction()

Checks whether the connection is in transaction state.

Returns: bool

isConnected()

{@inheritDoc}

Returns:

prepare()

Prepare

Parameter Name Type Description
$sql string

Returns: \Statement

rollback()

{@inheritDoc}

Returns:

setConnectionParameters()

{@inheritDoc}

Parameter Name Type Description
$connectionParameters

Returns:

setDriver()

Set driver

Parameter Name Type Description
$driver \Pdo

Returns: self Provides a fluent interface

setProfiler()

{@inheritDoc}

Parameter Name Type Description
$profiler

Returns: self Provides a fluent interface

setResource()

Set resource

Parameter Name Type Description
$resource \PDO

Returns: self Provides a fluent interface

Top