Client-side url option for only if database is already running

35 views
Skip to first unread message

Matt Pavlovich

unread,
Dec 19, 2019, 11:26:20 AM12/19/19
to H2 Database
We keep running into this scenario where it seems that there are a set of URL parameters for the 'management' or 'server-side' connection that we want and a different set for the client-side.

When using tcp:// for client-side, it is straight-forward. However, when trying to use file: for client-side (for performance reasons), it does not seem possible right now.

Is there a strategy for allowing client-side file: connections to not connect if there is not already one connection (aka the management or server-side) running?

We were looking at hack-ish alternatives like creating and deleting symlinks so the IFEXISTS check would fail. That creates a hacky race condition and isn't deterministic as it should be.

Has anyone solved this another way or would this be a feature enhancement?

Thanks!
-Matt

Matt Pavlovich

unread,
Dec 26, 2019, 12:03:39 PM12/26/19
to H2 Database
For future Googler's reference: additional discussion here: https://github.com/h2database/h2database/issues/2354
Reply all
Reply to author
Forward
0 new messages