public setReservedWords(array $words): void
Parameter | Type | Description |
---|
$words | array | |
public create(string $name, string $type, bool $ifNotExists = false): string
Parameter | Type | Description |
---|
$name | string | |
$type | string | |
$ifNotExists | bool | |
public insert(string $tableName, mixed $fields, string $returning, string $conflictTarget, mixed $conflictUpdate, ?Table $table): string
Parameter | Type | Description |
---|
$tableName | string | |
$fields | mixed | |
$returning | string | |
$conflictTarget | string | |
$conflictUpdate | mixed | |
$table | Table | |
public update(string $table, mixed $fields, array $criteria = [], array $from = [], mixed $returning, array $tables = []): string
Parameter | Type | Description |
---|
$table | string | |
$fields | mixed | |
$criteria | array | |
$from | array | |
$returning | mixed | |
$tables | array | |
public delete(string $table, array $criteria, array $from = []): string
Parameter | Type | Description |
---|
$table | string | |
$criteria | array | |
$from | array | |
public truncate(string $table, bool $cascade = false): string
Parameter | Type | Description |
---|
$table | string | |
$cascade | bool | |
public exists(string $table, mixed $criteria): string
Parameter | Type | Description |
---|
$table | string | |
$criteria | mixed | |
public select(mixed $columns): self
Parameter | Type | Description |
---|
$columns | mixed | |
public distinct(string $columns): self
Parameter | Type | Description |
---|
$columns | string | |
public from(string $table): self
Parameter | Type | Description |
---|
$table | string | |
public where(mixed $criteria): self
Parameter | Type | Description |
---|
$criteria | mixed | |
public group(string $column): self
Parameter | Type | Description |
---|
$column | string | |
public having(string $columns): self
Parameter | Type | Description |
---|
$columns | string | |
public window(string $name, string $partitionBy, string $orderBy): self
Parameter | Type | Description |
---|
$name | string | |
$partitionBy | string | |
$orderBy | string | |
Join a table to the current query using the provided join criteria.
public join(string $references, string $on, ?string $alias, string $type = 'INNER'): self
Parameter | Type | Description |
---|
$references | string | |
$on | string | |
$alias | string | |
$type | string | |
public order(string $columns, int $sortDirection = 'SORT_ASC'): self
Parameter | Type | Description |
---|
$columns | string | |
$sortDirection | int | |
public limit(int $limit): self
Parameter | Type | Description |
---|
$limit | int | |
public offset(int $offset): self
Parameter | Type | Description |
---|
$offset | int | |
public toString(): string
public getSchemaName(): ?string
public parseSchemaName(string $tableName): void
Parameter | Type | Description |
---|
$tableName | string | |
public schemaName(string $tableName): string
Parameter | Type | Description |
---|
$tableName | string | |
public quoteSpecial(mixed $value): mixed
Parameter | Type | Description |
---|
$value | mixed | |
public field(string $string): string
Parameter | Type | Description |
---|
$string | string | |
public prepareFields(mixed $fields, array $exclude = [], array $tables = []): string
Parameter | Type | Description |
---|
$fields | mixed | |
$exclude | array | |
$tables | array | |
public prepareValues(mixed $values): string
Parameter | Type | Description |
---|
$values | mixed | |
public prepareValue(mixed $value, ?string $key): mixed
Parameter | Type | Description |
---|
$value | mixed | |
$key | string | |
public prepareArrayAliases(array $array): void
Parameter | Type | Description |
---|
$array | array | |
public prepareCriteria(string $criteria, ?string $bindType, ?string $tissue, ?string $parentRef, string $optionalKey): string
Parameter | Type | Description |
---|
$criteria | string | |
$bindType | string | |
$tissue | string | |
$parentRef | string | |
$optionalKey | string | |
Generated by Hazaar API Doc Generator