PHP Class Codeception\Lib\Driver\ExtendedMySql

Inheritance: extends Codeception\Lib\Driver\MySql
Mostra file Open project: lucatume/wp-browser

Public Methods

Method Description
insertOrUpdate ( string $tableName, array $data ) : string Returns the statement to insert or update an entry in the database.

Protected Methods

Method Description
getAssignmentsFor ( array $data, $glue = ', ' )

Method Details

getAssignmentsFor() protected method

protected getAssignmentsFor ( array $data, $glue = ', ' )
$data array

insertOrUpdate() public method

Returns the statement to insert or update an entry in the database.
public insertOrUpdate ( string $tableName, array $data ) : string
$tableName string The table name to use
$data array Key/value pairs of the data to insert/update.
return string The query string ready to be prepared.