-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This provides an interface defining the methods that we expect to be used for OV handling operations. Added an implementation for sqlite and postgress. Added db creation files and tests. Signed-off-by: Irene Diez <[email protected]>
- Loading branch information
Showing
12 changed files
with
775 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "db" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
anyhow = "1.0" | ||
diesel = { version = "2.1.0", features = ["sqlite", "postgres", "r2d2"] } | ||
dotenvy = "0.15" | ||
log = "0.4" | ||
time = "0.3" | ||
xattr = { version = "1.0", default-features = false, optional = false } # We *need* xattrs to store TTL | ||
|
||
fdo-data-formats = { path = "../data-formats", version = "0.4.12" } | ||
fdo-util = { path = "../util", version = "0.4.12" } | ||
|
||
[features] | ||
postgres = [] | ||
sqlite = [] | ||
|
||
default = ["postgres", "sqlite"] |
Oops, something went wrong.