package |
Query |
subpackage |
Core |
Methods
Parse the passed parameters and return a connection
connect(\ArrayObject $params) : \Query\Query_Builder
Parameters
Exceptions
Returns
Returns the connection specified by the name given
get_connection(string|array|object $name = ''
) : \Query\Query_Builder
Parameters
$name
string
array
object
Exceptions
Returns
Private clone method to prevent cloning
__clone()
Private constructor to prevent multiple instances
__construct()
Make sure serialize/deseriaze doesn't work
__wakeup()
Create the dsn from the db type and params
create_dsn(string $dbtype, \ArrayObject $params) : string
Parameters
$dbtype
string
Returns
string
Parses params into a dsn and option array
parse_params(\ArrayObject $params)
Properties
Map of named database connections
$connections : array