Method |
Description |
|
__construct ( mixed $host, string $datasource = null, string $username = null, string $password = null, array $options = [] ) : void |
|
|
connection ( ) |
Get database connection |
|
create ( $source, array $data ) |
Insert entity |
|
createDatabase ( $database ) |
Create a database
Will throw errors if user does not have proper permissions |
|
dateFormat ( ) |
Get database DATE format for PHP date() function |
|
dateTimeFormat ( ) |
Get database full DATETIME for PHP date() function |
|
delete ( $source, array $where ) |
Delete entity |
|
dropDatabase ( $database ) |
Drop an entire database
Destructive and dangerous - drops entire table and all data
Will throw errors if user does not have proper permissions |
|
dropDatasource ( $source ) |
Drop/delete data source (table for SQL)
Destructive and dangerous - drops entire data source and all data |
|
escape ( string $string ) |
Escape/quote direct user input |
|
read ( phpDataMapper_Query $query ) |
Read from data source using given query object |
|
timeFormat ( ) |
Get database TIME format for PHP date() function |
|
truncateDatasource ( $source ) |
Truncate data source (table for SQL)
Should delete all rows and reset serial/auto_increment keys to 0 |
|
update ( $source, array $data, array $where = [] ) |
Update entity |
|