Re: Does derby have an embedded Mode like Derby ?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Does derby have an embedded Mode like Derby ?
Date: 2009-08-04 14:14:51
Message-ID: h59for$25m$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul Taylor, 04.08.2009 15:48:
> Thats a shame, I wanted to write junit test for a java program that
> queried a database, requiring a full database to be available for unit
> tests is not really an environment I want to have.

Well if you want to test the database, you will need a full database.

But you can easily setup and start a Postgres server through a batch file/shell script.
I have a small batch file that simply uses the binary ZIP distribution to run initdb and create the initial databases. We are using this to bundle Postgres e.g. with a Tomcat web application.

You don't really need to run an installer and/or create registry entries (for windows). This would then resemble more the Derby network server setup.

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2009-08-04 14:16:48 Re: parameters in functions and overlap with names of columns
Previous Message Paul Taylor 2009-08-04 14:02:03 Re: Does derby have an embedded Mode like Derby ?