Re: Does derby have an embedded Mode like Derby ? - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: Does derby have an embedded Mode like Derby ?
Date
Msg-id h59for$25m$1@ger.gmane.org
Whole thread Raw
In response to Re: Does derby have an embedded Mode like Derby ?  (Paul Taylor <ijabz@fastmail.fm>)
Responses Re: Does derby have an embedded Mode like Derby ?  (Paul Taylor <ijabz@fastmail.fm>)
List 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.
Weare 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
theDerby network server setup. 

Thomas


pgsql-general by date:

Previous
From: Paul Taylor
Date:
Subject: Re: Does derby have an embedded Mode like Derby ?
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: parameters in functions and overlap with names of columns