Skip to content

Commit

Permalink
Create the StatementFlags value object
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Feb 4, 2024
1 parent 204f7cd commit 1ed1a27
Show file tree
Hide file tree
Showing 4 changed files with 405 additions and 499 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $query = 'OPTIMIZE TABLE tbl';
$parser = new Parser($query);
$flags = Query::getFlags($parser->statements[0]);

echo $flags['querytype']?->value;
echo $flags->queryType?->value;
```

### Parsing and building SQL query
Expand Down

0 comments on commit 1ed1a27

Please sign in to comment.