Skip to content

[Task]: PG Query - parse should return a wrapper instead of ParseResult #2035

@norberttech

Description

@norberttech

What needs to be done?

Currently src/lib/pg-query/src/Flow/PgQuery/Parser.php returns src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParseResult.php
which is not great since it's a protobuf auto generated.

For now I would like this api to allow user to:

  • list all tables in the query
  • list all columns in the query for given table
  • list all functions in the query
  • return raw ParseResult through raw() : ParseResult method

(more features will come)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions