~npen/teleinfo-db

Database initialization scripts
Add column for solar index
Add column for boiler index
Add functions used by teleinfo-api

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~npen/teleinfo-db
read/write
git@git.sr.ht:~npen/teleinfo-db

You can also use your local clone with git send-email.

#teleinfo-db

SQL scripts to initialize PostgreSQL database used by the teleinfo-logger and teleinfo-api applications.

#Usage

This is packaged as a Maven project and uses Liquibase.

Using a PostgreSQL database:

sudo docker run --name teleinfo-db -e POSTGRES_PASSWORD=teleinfo -e POSTGRES_USER=teleinfo -p 5432:5432 postgres

One can initialize it using:

mvn process-resources -Dliquibase.url=jdbc:postgresql://localhost:5432/teleinfo -Dliquibase.username=teleinfo -Dliquibase.password=teleinfo