private QueryBuilder $queryBuilder
public __construct(Adapter $adapter, string $table, ?string $alias): void
Parameter | Type | Description |
---|
$adapter | Adapter | |
$table | string | |
$alias | string | |
public __toString(): string
public toString(): string
public exists(mixed $criteria): bool
Parameter | Type | Description |
---|
$criteria | mixed | |
public select(string $columns = '*'): self
Parameter | Type | Description |
---|
$columns | string | |
public distinct(string $columns): self
Parameter | Type | Description |
---|
$columns | string | |
public limit(int $limit): self
Parameter | Type | Description |
---|
$limit | int | |
public offset(int $offset): self
Parameter | Type | Description |
---|
$offset | int | |
public order(string $columns, int $direction = 'SORT_ASC'): self
Parameter | Type | Description |
---|
$columns | string | |
$direction | int | |
public group(string $columns): self
Parameter | Type | Description |
---|
$columns | string | |
public having(string $having): self
Parameter | Type | Description |
---|
$having | string | |
Join a table to the current query using the provided join criteria.
public join(string $table, string $on, ?string $alias, string $type = 'INNER'): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
$type | string | the join type such as INNER, OUTER, LEFT, RIGHT, etc |
Join a table to the current query using the provided join criteria.
public leftJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
Join a table to the current query using the provided join criteria.
public rightJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
Join a table to the current query using the provided join criteria.
public innerJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
Join a table to the current query using the provided join criteria.
public outerJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
Join a table to the current query using the provided join criteria.
public fullJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
Join a table to the current query using the provided join criteria.
public crossJoin(string $table, string $on, ?string $alias): self
Parameter | Type | Description |
---|
$table | string | |
$on | string | The join criteria. This is mostly just a standard query selection criteria. |
$alias | string | an alias to use for the joined table |
public insert(mixed $values, string $returning, string $conflictTarget, mixed $conflictUpdate, ?Table $table): mixed
Parameter | Type | Description |
---|
$values | mixed | |
$returning | string | |
$conflictTarget | string | |
$conflictUpdate | mixed | |
$table | Table | |
public insertModel(Model $model, string $conflictTarget, mixed $conflictUpdate): Model
Parameter | Type | Description |
---|
$model | Model | |
$conflictTarget | string | |
$conflictUpdate | mixed | |
public update(mixed $values, string $where = [], mixed $returning): mixed
Parameter | Type | Description |
---|
$values | mixed | |
$where | string | |
$returning | mixed | |
Updates the given model in the database based on the specified criteria.
public updateModel(Model $model, string $where = []): Model
Parameter | Type | Description |
---|
$model | Model | the model instance to be updated |
$where | string | The criteria for selecting the record(s) to be updated. Can be an array of keys or a single key. |
public delete(string $where): int
Parameter | Type | Description |
---|
$where | string | |
public truncate(bool $cascade = false): bool
Parameter | Type | Description |
---|
$cascade | bool | |
public find(mixed $where, string $columns): self
Parameter | Type | Description |
---|
$where | mixed | |
$columns | string | |
public where(mixed $where): self
Parameter | Type | Description |
---|
$where | mixed | |
public findOne(string $where, string $columns, false $): void
Parameter | Type | Description |
---|
$where | string | |
$columns | string | |
$ | false | |
Finds a single model instance based on the specified conditions.
public findOneModel(string $model, string $where): Model
Parameter | Type | Description |
---|
$model | string | the fully qualified class name of the model to instantiate |
$where | string | the conditions to use for finding the record |
public findOneRow(string $where, string $columns): Row
Parameter | Type | Description |
---|
$where | string | |
$columns | string | |
public fetch(false $): void
Parameter | Type | Description |
---|
$ | false | |
public fetchAll(?string $keyColumn, false $): void
Parameter | Type | Description |
---|
$keyColumn | string | |
$ | false | |
public fetchAllColumn(string $columnName, mixed $fetchArgument, bool $clobberDupNamedCols = false): void
Parameter | Type | Description |
---|
$columnName | string | |
$fetchArgument | mixed | |
$clobberDupNamedCols | bool | |
Fetches a model instance of the specified class.
public fetchModel(string $modelClass): Model
Parameter | Type | Description |
---|
$modelClass | string | the fully qualified class name of the model to fetch |
Fetches a collection of model instances of the specified class.
public fetchAllModel(string $modelClass, ?string $keyColumn): void
Parameter | Type | Description |
---|
$modelClass | string | the fully qualified class name of the model to fetch |
$keyColumn | string | |
public describe(false $): void
Parameter | Type | Description |
---|
$ | false | |
public create(mixed $columns): bool
Parameter | Type | Description |
---|
$columns | mixed | |
public getPrimaryKey(false $): void
Parameter | Type | Description |
---|
$ | false | |
Generated by Hazaar API Doc Generator