Extend PHP's PDO class to add some more functionality

package miniMVC
subpackage System

 Methods

Override __call in trait to call __call in Query Builder...lol

__call(string $name, array $params) : mixed

Parameters

$name

string

$params

array

Returns

mixed

Constructor to override JSObject trait

__construct(array $params) 

Parameters

$params

array

Indexed singleton method

get_instance(string $dbname, array $options) : \DB

Parameters

$dbname

string

$options

array

Returns

Returns the last error from the database

get_last_error() : string

Returns

string

 Properties

 

DB connection instances

$instance : array