Bouncy Melons 0.2
declarative style orm
Public Member Functions | Protected Attributes
Driver Class Reference
Inheritance diagram for Driver:
MysqlDriver SqliteDriver

Public Member Functions

 __construct (\PDO $pdo)
 
 getPDO ()
 
 exec ($query)
 
 query ($sql)
 
 queryOne ($sql)
 
 queryParam ($sql)
 

Protected Attributes

 $pdo
 

Detailed Description

Definition at line 5 of file Driver.php.

Constructor & Destructor Documentation

__construct ( \PDO  $pdo)

Definition at line 9 of file Driver.php.

Member Function Documentation

exec (   $query)

Definition at line 17 of file Driver.php.

getPDO ( )

Definition at line 13 of file Driver.php.

query (   $sql)
Parameters
string$sql
Returns
array of associated array, each sub array represent a row
Exceptions
ESelect

Definition at line 33 of file Driver.php.

queryOne (   $sql)
Parameters
string$sql
Returns
associative array
Exceptions
EItemNotFound

Definition at line 50 of file Driver.php.

queryParam (   $sql)

for special queries

Parameters
string$sqllike 'SELECT @@sql_mode';
Returns
param value

Definition at line 63 of file Driver.php.

Field Documentation

$pdo
protected

Definition at line 7 of file Driver.php.


The documentation for this class was generated from the following file: