ruby-pg-query

PostgreSQL query parsing and normalization library
  http://github.com/lfittl/pg_query
  0
  no reviews



Parses SQL queries using a copy of the PostgreSQL server query parser

This Ruby extension uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parsetree.

In addition the extension allows one to normalize queries (replacing constant values with ?) and parse these normalized queries into a parsetree again.