neo4j-contrib / sql2cypher

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

Interop via basic types to make native libraries easier? #20

Closed jexp closed 7 months ago

jexp commented 1 year ago

As I would like to support a native library to integrate e.g. with JS, Python, .Net and R it would be good if the main entrypoints to the API (in and out) would limit themselves to basic types that are available in all languages and not specific to Java?

That possibly mirrors the options we want to provide for the CLI.

michael-simons commented 1 year ago

CLI can happily deal with enums. For a native library I would add a small shim for that and not dumb the config down further. The latter already has been rewritten that it only takes in the mentioned types, for similar reasons. It’s easier wrt serialisation and immutability as well.