$sql->values()
Builds a safe list of values for insert, select or update queries
$sql->values(string $table, mixed $values, string $separator = ', ', bool $set = true, bool $enforceQualified = false): array{query: mixed, bindings: array}
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $tablerequired | string |
no default value | |
| $valuesrequired | mixed |
no default value | A value string or array of values |
| $separator | string |
', '
|
A separator which should be used to join values |
| $set | bool |
true
|
If true builds a set list of values for update clauses |
| $enforceQualified | bool |
false
|
Always use fully qualified column names |
Return type
array{query: mixed, bindings: array<string, mixed>}