Zend\Db\Adapter\Driver\Pdo\Connection
Synopsis
class Connection
implements
ConnectionInterface,ProfilerAwareInterface
{
- // members
- protected Pdo $driver;
- protected ProfilerInterface $profiler;
- protected string $driverName;
- protected array $connectionParameters;
- protected PDO $resource;
- protected bool $inTransaction;
- protected string $dsn;
- // methods
- public void __construct()
- public Connection setDriver()
- public Connection setProfiler()
- public ProfilerInterface getProfiler()
- public null|string getDriverName()
- public void setConnectionParameters()
- public array getConnectionParameters()
- public string getDsn()
- public string getCurrentSchema()
- public Connection setResource()
- public PDO getResource()
- public Connection connect()
- public bool isConnected()
- public Connection disconnect()
- public Connection beginTransaction()
- public bool inTransaction()
- public Connection commit()
- public Connection rollback()
- public Result execute()
- public Statement prepare()
- public string|null|false getLastGeneratedValue()
Hierarchy
Implements
Members
protected
- $connectionParameters — array
- $driver — Zend\Db\Adapter\Driver\Pdo\Pdo
- $driverName — string
- $dsn — string
- $inTransaction — Zend\Db\Adapter\Driver\Pdo\bool
- $profiler — Zend\Db\Adapter\Driver\Pdo\Profiler\ProfilerInterface
- $resource — \PDO
Methods
public
- __construct() — Constructor
- beginTransaction() — Begin transaction
- commit() — Commit
- connect() — Connect
- disconnect() — Disconnect
- execute() — Execute
- getConnectionParameters() — Get connection parameters
- getCurrentSchema() — Get current schema
- getDriverName() — Get driver name
- getDsn() — Get the dsn string for this connection
- getLastGeneratedValue() — Get last generated id
- getProfiler()
- getResource() — Get resource
- inTransaction() — In transaction
- isConnected() — Is connected
- prepare() — Prepare
- rollback() — Rollback
- setConnectionParameters() — Set connection parameters
- setDriver() — Set driver
- setProfiler()
- setResource() — Set resource