libpg_query icon indicating copy to clipboard operation
libpg_query copied to clipboard

Is it possible to use this library in java?

Open jiangtao69039 opened this issue 3 years ago • 3 comments

Is it possible to use pg_query_split_with_parser()/pg_query_parse()/pg_query_parse_plpgsql() in java

jiangtao69039 avatar Oct 28 '22 08:10 jiangtao69039

@jiangtao69039 There is no official Java wrapper that I'm aware of today, however @davidaventimiglia posted a draft PR over here: https://github.com/pganalyze/libpg_query/pull/154 (that will likely end up being a separate repository, per the PR discussion)

lfittl avatar Nov 02 '22 21:11 lfittl

@jiangtao69039 and @lfittl I threw those components into a separate repository, per the PR discussion, here:

https://github.com/davidaventimiglia/pg_java

There's loads of work and cleanup to do, but if you're impatient, this is a starting point. Let me know how I can help. Cheers!

@lfittl I'm trying to wrapper libpg_query.so using JNA. https://github.com/jiangtao69039/pg_parser_java

jiangtao69039 avatar Dec 05 '22 10:12 jiangtao69039