
How to read CREATE TABLE SQL with pg_query
pg_query [https://github.com/lfittl/pg_query] is a really cool Ruby library that uses Postgres [http://postgresql.org/]'s query parser to give you programmatic access to SQL queries. One thing you can do with it is read a CREATE TABLE [https://www.postgresql.org/docs/9.6/