class Postgres implements HelperInterface

Query builder postgres helper.

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 22
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