switch to hsqldb

This commit is contained in:
Andrea Spacca 2021-12-04 14:14:49 +01:00
parent 4a198c2d83
commit c673a9c8c3
4 changed files with 6 additions and 4 deletions

View file

@ -13,7 +13,7 @@ jobs:
matrix: matrix:
docker-compose-file: docker-compose-file:
- docker-compose.yml - docker-compose.yml
- testing/docker-compose.h2.yml - testing/docker-compose.hsqldb.yml
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
with: with:

View file

@ -31,6 +31,7 @@ dependencies {
implementation 'io.activej:activej-boot:5.0' implementation 'io.activej:activej-boot:5.0'
implementation 'io.activej:activej-specializer:5.0' implementation 'io.activej:activej-specializer:5.0'
implementation 'io.activej:activej-launchers-http:5.0' implementation 'io.activej:activej-launchers-http:5.0'
implementation 'org.hsqldb:hsqldb:2.6.1'
implementation 'org.postgresql:postgresql:42.3.1' implementation 'org.postgresql:postgresql:42.3.1'
implementation 'org.hibernate:hibernate-core:5.6.1.Final' implementation 'org.hibernate:hibernate-core:5.6.1.Final'
implementation 'org.hibernate:hibernate-hikaricp:5.6.1.Final' implementation 'org.hibernate:hibernate-hikaricp:5.6.1.Final'

View file

@ -11,8 +11,9 @@ API_URL: https://pipedapi.kavin.rocks
FRONTEND_URL: https://piped.kavin.rocks FRONTEND_URL: https://piped.kavin.rocks
# Hibernate properties # Hibernate properties
hibernate.connection.url: jdbc:h2:mem:test;MODE=PostgreSQL hibernate.connection.url: jdbc:hsqldb:mem:memdb;sql.syntax_pgs=true
hibernate.connection.driver_class: org.h2.Driver hibernate.connection.driver_class: org.hsqldb.jdbcDriver
hibernate.dialect: org.hibernate.dialect.HSQLDialect
hibernate.dialect: org.hibernate.dialect.PostgreSQL10Dialect hibernate.dialect: org.hibernate.dialect.PostgreSQL10Dialect
hibernate.connection.username: piped hibernate.connection.username: piped
hibernate.connection.password: changeme hibernate.connection.password: changeme

View file

@ -5,4 +5,4 @@ services:
ports: ports:
- "127.0.0.1:8080:8080" - "127.0.0.1:8080:8080"
volumes: volumes:
- ./config.h2.properties:/app/config.properties - ./config.hsqldb.properties:/app/config.properties