|
4 | 4 |
|
5 | 5 | interface QueryBuilderInterface |
6 | 6 | { |
| 7 | + public function select(string|array ...$columns): static; |
| 8 | + public function selectRaw(string $expression): static; |
| 9 | + public function distinct(): static; |
| 10 | + public function where(string|callable $column, mixed $operator = null, mixed $value = null, string $boolean = 'AND'): static; |
| 11 | + public function orWhere(string|callable $column, mixed $operator = null, mixed $value = null): static; |
| 12 | + public function whereIn(string $column, array $values, string $boolean = 'AND'): static; |
| 13 | + public function orWhereIn(string $column, array $values): static; |
| 14 | + public function whereNotIn(string $column, array $values, string $boolean = 'AND'): static; |
| 15 | + public function orWhereNotIn(string $column, array $values): static; |
| 16 | + public function setEmptyWhereInBehavior(string $behavior): static; |
| 17 | + public function setEmptyWhereNotInBehavior(string $behavior): static; |
| 18 | + public function whereNull(string $column, string $boolean = 'AND'): static; |
| 19 | + public function orWhereNull(string $column): static; |
| 20 | + public function whereNotNull(string $column, string $boolean = 'AND'): static; |
| 21 | + public function orWhereNotNull(string $column): static; |
| 22 | + public function whereBetween(string $column, array $range, string $boolean = 'AND'): static; |
| 23 | + public function orWhereBetween(string $column, array $range): static; |
| 24 | + public function whereNotBetween(string $column, array $range, string $boolean = 'AND'): static; |
| 25 | + public function orWhereNotBetween(string $column, array $range): static; |
| 26 | + public function whereRaw(string $expression, array $bindings = [], string $boolean = 'AND'): static; |
| 27 | + public function orWhereRaw(string $expression, array $bindings = []): static; |
| 28 | + public function join(string $table, string|callable $first, ?string $operator = null, ?string $second = null, string $type = 'INNER'): static; |
| 29 | + public function leftJoin(string $table, string|callable $first, ?string $operator = null, ?string $second = null): static; |
| 30 | + public function rightJoin(string $table, string|callable $first, ?string $operator = null, ?string $second = null): static; |
| 31 | + public function crossJoin(string $table): static; |
| 32 | + public function groupBy(string|array $columns): static; |
| 33 | + public function having(string $column, string $operator, mixed $value, string $boolean = 'AND'): static; |
| 34 | + public function orHaving(string $column, string $operator, mixed $value): static; |
| 35 | + public function havingRaw(string $expression, string $boolean = 'AND'): static; |
| 36 | + public function orderBy(string $column, string $direction = 'asc'): static; |
| 37 | + public function orderByRaw(string $expression): static; |
| 38 | + public function limit(int $value): static; |
| 39 | + public function offset(int $value): static; |
7 | 40 | public function get(): array; |
8 | 41 | public function first(): ?array; |
9 | 42 | public function toSql(): string; |
| 43 | + public function getBindings(): array; |
| 44 | + public function insert(array $values): bool; |
| 45 | + public function insertGetId(array $values): int; |
| 46 | + public function update(array $values): int; |
| 47 | + public function delete(): int; |
| 48 | + public function count(string $column = '*'): int; |
| 49 | + public function sum(string $column): float|int; |
| 50 | + public function avg(string $column): float|int; |
| 51 | + public function min(string $column): float|int; |
| 52 | + public function max(string $column): float|int; |
| 53 | + public function exists(): bool; |
| 54 | + public function doesntExist(): bool; |
| 55 | + public function value(string $column): mixed; |
| 56 | + public function pluck(string $column, ?string $key = null): array; |
| 57 | + public function forPage(int $page, int $perPage): static; |
| 58 | + public function simplePaginate(int $perPage = 15, int $page = 1): array; |
10 | 59 | } |
0 commit comments