Skip to content

Commit 1ed1a27

Browse files
committed
Create the StatementFlags value object
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 204f7cd commit 1ed1a27

4 files changed

Lines changed: 405 additions & 499 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $query = 'OPTIMIZE TABLE tbl';
7272
$parser = new Parser($query);
7373
$flags = Query::getFlags($parser->statements[0]);
7474

75-
echo $flags['querytype']?->value;
75+
echo $flags->queryType?->value;
7676
```
7777

7878
### Parsing and building SQL query

0 commit comments

Comments
 (0)