Insert
- Full name:
\Qubus\Expressive\Insert
Methods
returning
Returning (Postgres etc.)
Parameters:
| Parameter | Type | Description |
|---|---|---|
$cols | string |
upsert
Upsert (basic support)
Parameters:
| Parameter | Type | Description |
|---|---|---|
$conflictCols | array | |
$updateData | array |
lastInsertId
Retrieves the ID of the last record inserted.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$pk | string|null |
insert
Insert new rows $data can be 2-dimensional to add a bulk insert If a single row is inserted, it will return its row instance
Parameters:
| Parameter | Type | Description |
|---|---|---|
$data | array | - data to populate |