Index
-
\com\setasign\SetaFramework
-
Database
- ConnectionException
- Database
- DatabaseConnectionManager
- DiRowFactory
- Driver
- DummyRowFactory
- Expression
- ExpressionInterface
- Identifier
- JoinedTable
- Manager
- Migration
- Query
- QuoteInterface
- QuoteLaterExpression
- RowFactoryInterface
- SqlInterface
- Table
- TableFactoryInterface
- TableInterface
- TableSelectInterface
- ValueExpression
-
Database
com\setasign\SetaFramework\Database
DatabaseConnectionManager
File: /SetaFramework/src/Database/DatabaseConnectionManager.php
Class hierarchy
Summary
Properties
Methods
__construct()
public DatabaseConnectionManager::__construct (
\com\setasign\SetaFramework\Log\LogHandler $logHandler,
?\com\setasign\SetaFramework\Config\Config $config
)?\com\setasign\SetaFramework\Config\Config $config
DatabaseConnectionManager constructor.
Parameters
- $logHandler : \com\setasign\SetaFramework\Log\LogHandler
- $config : ?\com\setasign\SetaFramework\Config\Config
closeAllConnections()
Close all known connections. Like closeConnection() technically this method doesn't close the connections.
See
closeConnection()
Close the connection with the given identifier.
If the identifier is unknown nothing will happen.
Technically this method will NOT close the connection but just forget about the connection - if the instance is referenced somewhere else the connection will still remain but the next call to getConnection() will create a new connection.
Parameters
- $identifier : string
getConnection()
Parameters
- $identifier : string
Exceptions
Throws \com\setasign\SetaFramework\InvalidConfigurationException If identifier cannot be found or the configuration is invalid.
Throws ConnectionException
getConnectionByApplicationConfig()
public DatabaseConnectionManager::getConnectionByApplicationConfig (
\com\setasign\SetaFramework\Application\ApplicationConfig $applicationConfig
): DatabaseParameters
- $applicationConfig : \com\setasign\SetaFramework\Application\ApplicationConfig
Exceptions
Throws ConnectionException
getConnectionConfig()
public DatabaseConnectionManager::getConnectionConfig (
string $identifier = 'default'
): \com\setasign\SetaFramework\Config\ConfigParameters
- $identifier : string
