DB\SQL::driver PHP Method

driver() public method

Return database engine
public driver ( ) : string
return string
    function driver()
    {
        return $this->engine;
    }

Usage Example

Example #1
0
 /**
 		Instantiate class
 		@param $db object
 		@param $table string
 		@param $ttl int
 	**/
 function __construct(\DB\SQL $db, $table, $ttl = 60)
 {
     $this->db = $db;
     $this->engine = $db->driver();
     $this->table = $table;
     $this->fields = $db->schema($table, $ttl);
     $this->reset();
 }
All Usage Examples Of DB\SQL::driver