You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently for SELECT * FROM posts the following enhanced AST is printed. This is a huge amount of lines for a simple statement and there's probably some compacting that can be done here.
For example
Do not render SQL?
Make scalar nodes (true, false, string, etc) more compact
not render parent
not render at all?
Let's see what can be removed but still resulting in a useful printed AST.
Secondly, the paths printed in the inspect are absolute and full paths. It is useful is the path that's printed is related to the current node and not the absolute path relative to the root node.
node.ast.cores
This can also be an opportunity to reuse the to_sql_and_binds for to_sql added in #128.
Currently for
SELECT * FROM posts
the following enhanced AST is printed. This is a huge amount of lines for a simple statement and there's probably some compacting that can be done here.For example
Let's see what can be removed but still resulting in a useful printed AST.
Secondly, the paths printed in the inspect are absolute and full paths. It is useful is the path that's printed is related to the current node and not the absolute path relative to the root node.
This can also be an opportunity to reuse the
to_sql_and_binds
forto_sql
added in #128.The text was updated successfully, but these errors were encountered: