-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
22 changed files
with
649 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.