$_connection
$_connection : \PDO|null
Instance of PDO.
PDO driver trait
connection(null|\PDO $connection = null) : \PDO
Returns correct connection resource or object that is internally used If first argument is passed, it will set internal connection object or result to the value passed
null|\PDO | $connection | The PDO connection instance. |
connection object used internally
prepare(string|\Cake\Database\Query $query) : \Cake\Database\StatementInterface
Prepares a sql statement to be executed
string|\Cake\Database\Query | $query | The query to turn into a prepared statement. |
lastInsertId(string|null $table = null, string|null $column = null) : string|integer
Returns last id generated for a table or sequence in database
string|null | $table | table name or sequence to get last insert value from |
string|null | $column | the name of the column representing the primary key |
Loading…