Closed runcom closed 3 weeks ago
Is this ready for review? Looking to be ongoing updates so maybe should be a draft until it's ready
You should move the removal of store/src/db.rs into the first commit since you are already creating two separate files for sqlite and postgres that have the pool reuse modification
I figured it's probably better to have this enhancement as a single commit (too many moving pieces and I want to avoid to break bisect too)
You should move the removal of store/src/db.rs into the first commit since you are already creating two separate files for sqlite and postgres that have the pool reuse modification
I figured it's probably better to have this enhancement as a single commit (too many moving pieces and I want to avoid to break bisect too)
That also works for me :+1:
chore: store: db: reuse connection pool
The pool object is meant to be reused and since we're initializing the store as part of a long running process, we should save the pool object and pass it around/use it.
chore: store: db: refactor database configuration
This mainly comes from @mmartinv comment https://github.com/fdo-rs/fido-device-onboard-rs/pull/556/files#r1465996442