1391. Class

1391.1. Zend\Db\Adapter\Driver\Pdo\Connection

1391.1.1. Methods

1391.1.1.1. __construct

__construct()

Constructor

Parameters:array|PDO|null
Throws ExceptionInvalidArgumentException:
 

1391.1.1.2. setDriver

setDriver()

Set driver

Parameters:Pdo
Return type:Connection

1391.1.1.3. setProfiler

setProfiler()

@param ProfilerProfilerInterface $profiler

Return type:Connection

1391.1.1.4. getProfiler

getProfiler()

@return null|ProfilerProfilerInterface

1391.1.1.5. getDriverName

getDriverName()

Get driver name

Return type:null|string

1391.1.1.6. setConnectionParameters

setConnectionParameters()

Set connection parameters

Parameters:array
Return type:void

1391.1.1.7. getConnectionParameters

getConnectionParameters()

Get connection parameters

Return type:array

1391.1.1.8. getCurrentSchema

getCurrentSchema()

Get current schema

Return type:string

1391.1.1.9. setResource

setResource()

Set resource

Parameters:PDO
Return type:Connection

1391.1.1.10. getResource

getResource()

Get resource

Return type:PDO

1391.1.1.11. connect

connect()

Connect

Return type:Connection
Throws :ExceptionInvalidConnectionParametersException
Throws :ExceptionRuntimeException

1391.1.1.12. isConnected

isConnected()

Is connected

Return type:bool

1391.1.1.13. disconnect

disconnect()

Disconnect

Return type:Connection

1391.1.1.14. beginTransaction

beginTransaction()

Begin transaction

Return type:Connection

1391.1.1.15. commit

commit()

Commit

Return type:Connection

1391.1.1.16. rollback

rollback()

Rollback

Return type:Connection
Throws :ExceptionRuntimeException

1391.1.1.17. execute

execute()

Execute

Parameters:$sql
Return type:Result
Throws :ExceptionInvalidQueryException

1391.1.1.18. prepare

prepare()

Prepare

Parameters:string
Return type:Statement

1391.1.1.19. getLastGeneratedValue

getLastGeneratedValue()

Get last generated id

Parameters:string
Return type:integer|null|false