diff options
author | xengineering <me@xengineering.eu> | 2024-05-09 10:02:00 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-09 10:02:00 +0200 |
commit | a2038b0ea35d1466c84e6e04a2e4597fc038815a (patch) | |
tree | fe94c7992dc5f7efb2b8266a5974be2430980cbf /main.go | |
parent | 0ba1a7661a81200db98e40149eef1e39fd22f407 (diff) | |
download | ceres-a2038b0ea35d1466c84e6e04a2e4597fc038815a.tar ceres-a2038b0ea35d1466c84e6e04a2e4597fc038815a.tar.zst ceres-a2038b0ea35d1466c84e6e04a2e4597fc038815a.zip |
Restructure database-related functions
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,9 +33,9 @@ func main() { } log.Printf("Storage directory: %s\n", storage.Path) - model.InitDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) - defer model.CloseDatabase() - + model.ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) + defer model.DisconnectDatabase() + model.MigrateDatabase() model.InjectTestRecipes() server := NewServer(config.HttpAddress) |