interface HelperInterface

Query builder helper interface.

Methods

int|bool
insertAndGetId(Query $query, array $values, string|null $primaryKey = null)

Inserts data into the chosen table and returns the auto increment id.

Details

at line 27
int|bool insertAndGetId(Query $query, array $values, string|null $primaryKey = null)

Inserts data into the chosen table and returns the auto increment id.

Parameters

Query $query Query builder instance
array $values Associative array of column values
string|null $primaryKey Primary key name

Return Value

int|bool