| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class PostgresGrammar extends Base implements JsonGrammar |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Compile a "JSON array" statement into SQL. |
||
| 12 | * |
||
| 13 | * @param string $column |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | 45 | public function compileJsonArray($column) |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Compile a "JSON object" statement into SQL. |
||
| 23 | * |
||
| 24 | * @param string $column |
||
| 25 | * @param int $levels |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 22 | public function compileJsonObject($column, $levels) |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Compile a "JSON value select" statement into SQL. |
||
| 39 | * |
||
| 40 | * @param string $column |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 11 | public function compileJsonValueSelect(string $column): string |
|
| 48 |