NetWallah has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for working code that shows how to DBI connect to a H2 database.
I have found a few references that claim that the Ppstgres DBD driver (DBD::Pg) can be used for this purpose, but all my attempts to use a H2 database file name with that driver failed.
I believe I need to start the H2 server, and somehow configure it to listen for Postgres protocol on a TCP port, then use the DBD:Pg driver to connect to it .. but I could not figure out the necessary parameters to start the H2 engine to listen for PG protocol.
I would appreciate either an explanation of how this is supposed to work, or known working syntax on both starting H2 appropriately, if necessary, and the connection string.
Peace and seasonal thanks to all.
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: H2 database connect in perl
by erix (Prior) on Nov 26, 2014 at 08:38 UTC | |
|
Re: H2 database connect in perl
by poj (Abbot) on Nov 26, 2014 at 16:48 UTC | |
|
Re: H2 database connect in perl
by NetWallah (Canon) on Nov 27, 2014 at 00:14 UTC |