| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function view(string $name) |
||
| 37 | { |
||
| 38 | return [ |
||
| 39 | 'name' => $name, |
||
| 40 | 'type' => 'VIEW', |
||
| 41 | 'materialized' => false, |
||
| 42 | 'select' => preg_replace('~^(?:[^`"[]+|`[^`]*`|"[^"]*")* AS\s+~iU', '', |
||
| 43 | $this->connection->result("SELECT sql FROM sqlite_master WHERE name = " . |
||
| 44 | $this->driver->quote($name))) |
||
| 45 | ]; //! identifiers may be inside [] |
||
| 64 |