1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 18:10:42 +01:00
eclair/eclair-core
Pierre-Marie Padiou 936f36b9fc
Refactor Postgres code (#1743)
More symmetry between postgres and sqlite init.

* define SqliteDatabases and PostgresDatabase

Those classes implement traits `Databases`, `FileBackup` and
`ExclusiveLock`.

The goal is to have access to backend-specific attributes, particularly
in tests. It arguably makes the `Databases` cleaner and simpler, with a
nice symmetry between the `apply methods`.

* replace 5s lock timeout by NOLOCK

* use chaindir instead of datadir for jdbcurl file

It is more consistent with sqlite, and makes sense because we don't want
to mix up testnet and mainnet databases.

* add tests on locks and jdbc url check
2021-03-31 16:12:06 +02:00
..
src Refactor Postgres code (#1743) 2021-03-31 16:12:06 +02:00
eclair-cli Refactor and simplify API dsl (#1690) 2021-03-09 15:23:50 +01:00
pom.xml Set version to 0.5.2-SNAPSHOT (#1714) 2021-03-03 15:29:26 +01:00