PostgresAntlrParser
PostgreSQL parser built on the vendored antlr/grammars-v4 PostgreSQL grammar. Extracts parameters both from the parse tree (Core walker) and from the raw token stream (Postgres-specific @name detection).
[ExcludeFromCodeCoverage]
public sealed class PostgresAntlrParser : ISqlParser
Methods
ParseSql(string)
public Result<SelectStatement, string> ParseSql(string sql)
Parse SQL text and extract comprehensive metadata including SELECT list, tables, parameters, and joins
Parameters:
| Name | Type | Description |
|---|---|---|
sql |
String |
The SQL text to parse |
Returns: String> - A Result containing either the parsed SQL statement metadata or an error message