protected array $selectGroups
protected string $quoteSpecial = '"'
protected array $reservedWords
public string $schemaName
public __construct(?string $schemaName): void
Parameter | Type | Description |
---|
$schemaName | string | |
public setReservedWords(array $words): void
Parameter | Type | Description |
---|
$words | array | |
public getSchemaName(): ?string
public parseSchemaName(string $tableName): void
Parameter | Type | Description |
---|
$tableName | string | |
public schemaName(string $tableName): string
Parameter | Type | Description |
---|
$tableName | string | |
public quote(string $string, bool $addSlashes = true): string
Parameter | Type | Description |
---|
$string | string | |
$addSlashes | bool | |
public quoteSpecial(mixed $value): mixed
Parameter | Type | Description |
---|
$value | mixed | |
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 $tableName, mixed $fields, array $criteria = [], array $from = [], mixed $returning, array $tables = []): string
Parameter | Type | Description |
---|
$tableName | string | |
$fields | mixed | |
$criteria | array | |
$from | array | |
$returning | mixed | |
$tables | array | |
public delete(string $tableName, mixed $criteria, array $from = []): string
Parameter | Type | Description |
---|
$tableName | string | |
$criteria | mixed | |
$from | array | |
public truncate(string $tableName, bool $cascade = false): string
Parameter | Type | Description |
---|
$tableName | string | |
$cascade | bool | |
public exists(string $tableName, mixed $criteria): string
Parameter | Type | Description |
---|
$tableName | string | |
$criteria | mixed | |
public select(mixed $columns): self
Parameter | Type | Description |
---|
$columns | mixed | |
Selects only distinct rows that match based on the specified expressions.
public distinct(string $columns): self
Parameter | Type | Description |
---|
$columns | string | |
public from(string $table, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$alias | string | |
Defines a WHERE selection criteria.
public where(mixed $criteria): self
Parameter | Type | Description |
---|
$criteria | mixed | |
public group(string $columns): self
Parameter | Type | Description |
---|
$columns | 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 | |
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 $fieldDef, int $sortDirection = 'SORT_ASC'): self
Parameter | Type | Description |
---|
$fieldDef | string | |
$sortDirection | int | |
public limit(?int $limit): self
Parameter | Type | Description |
---|
$limit | int | |
public offset(?int $offset): self
Parameter | Type | Description |
---|
$offset | int | |
Return the current selection as a valid SQL string.
public toString(bool $terminateWith_colon = false, bool $untable = false): string
Parameter | Type | Description |
---|
$terminateWith_colon | bool | |
$untable | bool | |
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 | |
private prepareCriteriaAction(string $action, mixed $value, string $tissue = '=', ?string $key, bool $setKey = true): string
Parameter | Type | Description |
---|
$action | string | |
$value | mixed | |
$tissue | string | |
$key | string | |
$setKey | bool | |
private prepareFrom(): string
private prepareOrder(string $orderDefinition): string
Parameter | Type | Description |
---|
$orderDefinition | string | |
Generated by Hazaar API Doc Generator