ConnectionManager
in package
Connection manager class to manage connections for the Query method
Table of Contents
- __clone() : void
- Private clone method to prevent cloning
- __sleep() : mixed
- Prevent serialization of this object
- __wakeup() : void
- Make sure serialize/deserialize doesn't work
- connect() : QueryBuilderInterface
- Parse the passed parameters and return a connection
- getConnection() : QueryBuilderInterface
- Returns the connection specified by the name given
- getInstance() : ConnectionManager
- Return a connection manager instance
- parseParams() : array<string|int, mixed>
- Parses params into a dsn and option array
Methods
__clone()
Private clone method to prevent cloning
public
__clone() : void
Tags
Return values
void —__sleep()
Prevent serialization of this object
public
__sleep() : mixed
Tags
Return values
mixed —__wakeup()
Make sure serialize/deserialize doesn't work
public
__wakeup() : void
Tags
Return values
void —connect()
Parse the passed parameters and return a connection
public
connect(array<string|int, mixed>|object $params) : QueryBuilderInterface
Parameters
- $params : array<string|int, mixed>|object
Return values
QueryBuilderInterface —getConnection()
Returns the connection specified by the name given
public
getConnection([string $name = '' ]) : QueryBuilderInterface
Parameters
- $name : string = ''
Tags
Return values
QueryBuilderInterface —getInstance()
Return a connection manager instance
public
static getInstance() : ConnectionManager
Tags
Return values
ConnectionManager —parseParams()
Parses params into a dsn and option array
public
parseParams(array<string|int, mixed>|object $rawParams) : array<string|int, mixed>
Parameters
- $rawParams : array<string|int, mixed>|object