neo4j-contrib / sql2cypher

Experimental SQL to Cypher Transpiler using jooq and cypher-dsl
Apache License 2.0
26 stars 1 forks source link

Disable jOOQ banner + tips for the command line tool? #13

Closed jexp closed 1 year ago

jexp commented 1 year ago

To use the tool, the banner and tips add to the output and would have to be filtered out.

Or put them on stderr at least.

We might also change the log-level config for the CLI to error or warn.

michael-simons commented 1 year ago

The jOOQ banner already only appears on stderr.

➜  sql2cypher git:(issue/12) ✗ ./target/assembly/bin/sql2cypher 2>/dev/null 
MATCH (t:my_table)
WHERE t.a = 1
RETURN t.a, t.b

I don't see a reason to disable it. I'm thinking more about finally adding a Cypher-DSL banner, really ;)

jexp commented 1 year ago

Ok sorry seems I was confused.

lukaseder commented 1 year ago

To use the tool, the banner and tips add to the output and would have to be filtered out.

Here's how: https://stackoverflow.com/q/28272284/521799