forked from CardanoSolutions/kupo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide DB-specific locations through conditional compilation
Use a single data structure, `databaseLocation`, to describe either a work directory or in-memory when compiled for SQLite or a remote URL when compiled for PostgreSQL. This provides strong type safety but comes at the cost of having to include a argument parser in the DB modules, which is not really where it belongs. Alternatively, conditional compilation could be added to the argument parsing module, but that also seems out of place. Ultimately, including all 3 alternatives in `databaseLocation` and validating at runtime may be a cleaner solution, despite the loss of type safety.
- Loading branch information
Showing
11 changed files
with
250 additions
and
506 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
Oops, something went wrong.