2

I'm writing some code with Slick and I'd like to be able to print the "Slick Query Tree" - is it possible somehow?

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
Jas
  • 14,493
  • 27
  • 97
  • 148

2 Answers2

2

I assume you want to see the abstract syntax tree for queries?! You can watch this movie: http://youtu.be/THlvR9bXHIc - it is also referenced at "http://slick.typesafe.com/docs/" below "Screencast 1: Introduction to the query compiler".

AFAIK you can use method toNode and nodeChildren in your own slick code to recursively traverse the AST.

tfh
  • 620
  • 1
  • 4
  • 14
2

We log them. See Slick logging with slf4j-simple See the available loggers here https://github.com/slick/slick/blob/master/common-test-resources/logback.xml

You'll need to look at the compiler ones.

Community
  • 1
  • 1
cvogt
  • 11,260
  • 30
  • 46