If you are already using GIT on you project you can add it as a submodule

$ git submodule add https://github.com/entomb/OBJ-MySQL.git libs/db

Starting the driver

To start the db driver you must include the main class file and pass the '$config' array described bellow.
you can have multiple instances of the Class each one with its own $config (one for Reads and one for Writes for example).

Fetching all data

Fetching all data works as Object or Array the fetchAll() method will return the default based on the $_default_result_type config.
Other methods are:

$Row=$Result->fetch(); // Fetch a single result row as defined by the config (Array or Object)$Row=$Result->fetchArray(); // Fetch a single result row as Array$Row=$Result->fetchObject(); // Fetch a single result row as Object$Data=$Result->fetchAll(); // Fetch all result data as defined by the config (Array or Object)$Data=$Result->fetchAllArray(); // Fetch all result data as Array$Data=$Result->fetchAllObject(); // Fetch all result data as Object$Data=$Result->fetchColumn(String$Column); // Fetch a single column in a 1 dimension Array$Data=$Result->fetchArrayPair(String$key, String$Value); // Fetch data as a key/value pair Array.