Closed RogerTangos closed 5 years ago
Thanks for reporting. Where in the code are you finding this to occur?
I'd actually totally forgotten about this until just now. I encountered this when working on the (unfinished) api, and since worked around it. I'm closing the ticket unless it comes up again (at which point, I'll just fix and submit a PR)
Currently, db path is relative to the
Database()
caller. It should either be relative, or relative to theDatabase.__class__.__file__
(not sure about my syntax there)This confused me when I instantiated a database using the
sql.yaml
file, and thedb
instance kept creating and referencing an empty database. I didn't understand why it was empty and spent way too much time debugging a workingsession
.