Is the client-server communication protocol to the server a published API?

52 views
Skip to first unread message

Clinton Hyde

unread,
Sep 23, 2020, 12:18:59 AM9/23/20
to h2-da...@googlegroups.com
Is the socket-content protocol/definition a published API?

I ask because I might be wanting to duplicate it in another language next year. This would allow me to continue to use H2, which I like very much, from this other language. Said language comes with an Oracle interface, but I don’t especially like Oracle.

— clint

Noel Grandin

unread,
Sep 23, 2020, 4:02:07 AM9/23/20
to H2 Database
Sorry, no. We can and do change it from time to time.

But if you have that level of access in your language, why not just load the H2 jar and use the JDBC API?

If you cant do that, I see the option as :
(*) write some kind of proxy which has a stable TCP API on one side, and talks JDBC on the other
(*) talk to the H2 native TCP API, and just accept that you'll have to update your code from time to time - we do maintain backwards compatibility with earlier clients, but we will absolutely not support your client in any official way.
(*) talk to the H2 PostgreSQL TCP API, since we implement a subset of that.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages