Query\ConnectionManager::get_connection
Returns the connection specified by the name given
Signature
public function get_connection([string
$name = ''] )
Parameters
$name
—
string
Returns
- Query_Builder
Errors/Exceptions
-
InvalidArgumentException
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 10
- Passed: 10 (100%)
Tests
- [ PASSED ] — Connection_Manager_Test::testConnect
- [ PASSED ] — Connection_Manager_Test::testGetConnection
- [ PASSED ] — MySQLQBTest::testInvalidConnectionName
- [ PASSED ] — PgSQLQBTest::testInvalidConnectionName
- [ PASSED ] — SQLiteQBTest::testQueryFunctionAlias
- [ PASSED ] — SQLiteQBTest::testInvalidConnectionName
- [ PASSED ] — FirebirdQBTest::testGetNamedConnectionException
- [ PASSED ] — FirebirdQBTest::testQueryFunctionAlias
- [ PASSED ] — FirebirdQBTest::testGetNamedConnection
- [ PASSED ] — FirebirdQBTest::testInvalidConnectionName