| 1 | <?php |
||
| 12 | class PostgresGrammar extends LaravelPostgresGrammar |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $jsonOperators = [ |
||
| 18 | '->', |
||
| 19 | '->>', |
||
| 20 | '#>', |
||
| 21 | '#>>', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $value |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 12 | protected function wrapValue($value) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Compile a "where null" clause. |
||
| 53 | * |
||
| 54 | * @param Builder $query |
||
| 55 | * @param array $where |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 3 | protected function whereNull(Builder $query, $where) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Compile a "where not null" clause. |
||
| 66 | * |
||
| 67 | * @param Builder $query |
||
| 68 | * @param array $where |
||
| 69 | * |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | 3 | protected function whereNotNull(Builder $query, $where) |
|
| 76 | } |
||
| 77 |