$query->build()
Builds the different types of SQL queries This uses the SQL class to build stuff.
$query->build(string $type): array{query: string, bindings: array}
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $typerequired | string |
no default value | select, update, insert or delete |
Return type
array{query: string, bindings: array}
Exceptions
| Type | Description |
|---|---|
InvalidArgumentException |
If the query type is invalid |