Method |
Description |
|
__construct ( PDO $pdo, FluentStructure $structure = null ) |
FluentPDO constructor. |
|
close ( ) : null |
Closes the \PDO connection to the database |
|
delete ( string $table, string $primaryKey = null ) : DeleteQuery |
Create DELETE query |
|
deleteFrom ( string $table, string $primaryKey = null ) : DeleteQuery |
Create DELETE FROM query |
|
from ( string $table, integer $primaryKey = null ) : SelectQuery |
Create SELECT query from $table |
|
getPdo ( ) : PDO |
|
|
getStructure ( ) : FluentStructure |
|
|
insertInto ( string $table, array $values = [] ) : InsertQuery |
Create INSERT INTO query |
|
update ( string $table, array | string $set = [], string $primaryKey = null ) : UpdateQuery |
Create UPDATE query |
|