Last active
September 25, 2019 16:47
-
-
Save lfittl/e2e213c8a362e8e7f0a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'pg_query' | |
| pp PgQuery.parse("SELECT 1") | |
| #<PgQuery:0x007f8cdaa8f8b8 | |
| @parsetree= | |
| [{"SELECT"=> | |
| {"distinctClause"=>nil, | |
| "intoClause"=>nil, | |
| "targetList"=> | |
| [{"RESTARGET"=> | |
| {"name"=>nil, | |
| "indirection"=>nil, | |
| "val"=>{"A_CONST"=>{"val"=>1, "location"=>7}}, | |
| "location"=>7}}], | |
| "fromClause"=>nil, | |
| "whereClause"=>nil, | |
| "groupClause"=>nil, | |
| "havingClause"=>nil, | |
| "windowClause"=>nil, | |
| "valuesLists"=>nil, | |
| "sortClause"=>nil, | |
| "limitOffset"=>nil, | |
| "limitCount"=>nil, | |
| "lockingClause"=>nil, | |
| "withClause"=>nil, | |
| "op"=>0, | |
| "all"=>false, | |
| "larg"=>nil, | |
| "rarg"=>nil}}], | |
| @query="SELECT 1", | |
| @warnings=[]> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@j-d Late response, but this is fixed now :)