postgresql-parser
postgresql-parser copied to clipboard
Pure Golang PostgreSQL (SQL:2011, SQL:2008, SQL:2003, SQL:1999, and SQL-92 Standard) Parser
I updated all the dependencies to the latest versions and removed the replaced dependency. @auxten Please let me know if this is not OK and if you based the project...
Anyone who needs this can leave a comment here. I don't quite sure it's useful.
解析此种类型的sql失败: SELECT COUNT ( * ) FROM pg_class C LEFT JOIN pg_namespace n ON n.oid = C.relnamespace WHERE C.relkind = ANY ( '{r,v,m}' :: CHAR [] ) UNION SELECT COUNT...
CockroachDB uses "STRING" (but accepts "TEXT" for compatibility) and PostgreSQL uses "TEXT" always. Fixes https://github.com/auxten/postgresql-parser/issues/15
Hi, I'm experimenting with postgresql-parser to intercept and rewrite some queries to a postgresql database. One problem I have encountered is that the formatter will output "STRING" by default for...
Hi, I'm experimenting with postgresql-parser to intercept and rewrite some queries to a postgresql database. One problem I have encountered is that the formatter will output "STRING" by default for...
How can I add ts_vector query support? It's choking on `WHERE to_tsvector(unaccent(name)) @@ to_tsquery('portuguese', ':*')`
Hi, I have a SQL statement that contains `GROUP BY EXTRACT(MONTH FROM issue_date)` After parsing this statement and writing the AST using `String()` on the root node, it returns an...
Hi I'm currently facing an issue while use postgresql-parser. During my usage, I encountered an error with the following code snippet: code: ``` sql := "SELECT PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER...
When walking through an `update`, `insert` or `delete` statement all nodes get skipped, since they are not in the type switch in the AstWalker function