pg_query
pg_query copied to clipboard
Ruby extension to parse, deparse and normalize SQL queries using the PostgreSQL query parser
PR #238 unblocks me. I'd like to get it out in a release.
I'm getting this message when trying to install with latest ruby 3.1.1 on a Mac: `google-protobuf-3.19.4-x86_64-darwin requires ruby version < 3.1.dev, >= 2.5, which is incompatible with the current version,...
Hello There, I'm having a issue with the deparse feature, I want to keep all quotes from my original request on each identifiers. Is there any way to do it...
Hey folks! Thanks for the library! May I ask for a tip on how to fix compilation errors for `>v2.0.0`. Trying to install on CentOS image but gem installation fails...
when i first time tried to install pg_query i failed it reminded me to install DevKit i installed it then test installtion as follow https://github.com/oneclick/rubyinstaller/wiki/Development-Kit#5-test-installation DevKit works well and i...
Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.21.6 to 3.21.7. Commits 5fc03e1 Updating version.json and repo version numbers to: 21.7 See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts...
Allows for deparsing of deeply-nested queries. Prevents the exception: `Exceeded maximum depth (possibly cycle)` from being raised. Basically a mirror image of the parsing change in #238
Hi, In our sql query, the table_name is "user". But this is not been considered when I parsed and try to get the table_names. `irb(main):010:0> query = "select * from...
Simple example: ```sql create function example() returns int return 13; ``` This is working since postgres 14 - see docs https://www.postgresql.org/docs/current/sql-createfunction.html ``` The same function written in a more SQL-conforming...
The release of google-protobuf 4 cause pg_query to throw exceptions when the older Ruby DSL methods are used. For instance: ``` NoMethodError: undefined method `build' for # (NoMethodError) Google::Protobuf::DescriptorPool.generated_pool.build do...