feat(sqlite): implement query planner (#1174)

* feat(sqlite): implement query planner

* implement Close on SQLite
This commit is contained in:
Kyle Sanderson 2023-11-01 10:07:16 -07:00 committed by GitHub
parent 5cf5d16050
commit 8c89481d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -83,6 +83,14 @@ func (db *DB) Open() error {
}
func (db *DB) Close() error {
switch db.Driver {
case "sqlite":
if err := db.closingSQLite(); err != nil {
db.log.Fatal().Err(err).Msg("could not run sqlite shutdown tasks")
}
case "postgres":
}
// cancel background context
db.cancel()