I'm trying to use PostgreSQL with Spring, Maven and Hibernate as an in-memory SGBD when running my tests.
The error I'm getting is that the database doesn't exist.
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: database "test" does not exist)
Is there any way to specify PostgreSQL to create its own tables in-memory, through hibernate, or feed it an sql query that would build the database?
Here are a few properties that I used with HYPERSONIC_IN_MEMORY and worked just fine, how can I apply the same to PostgreSQL?
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="create" />
</properties>
It's my first time using PostgreSQL and any help would be greatly appreciated.