package |
Query |
subpackage |
Query |
Methods
Parse the passed parameters and return a connection
connect(array|object $params) : \Query_Builder
Parameters
$params
array
object
Exceptions
Returns
Returns the connection specified by the name given
get_connection(mixed $name = ''
) : \Query_Builder
Parameters
$name
mixed
Exceptions
Returns
Private methods for singleton
__construct()
Make sure serialize/deseriaze doesn't work
__wakup()
Create the dsn from the db type and params
create_dsn(string $dbtype, array|object $params) : string
Parameters
$dbtype
string
$params
array
object
Returns
string
Parses params into a dsn and option array
parse_params(\ArrayObject $params)
Properties
Map of named database connections
$connections : array