server: use postgres instead of scylla, easier to host

This commit is contained in:
2026-05-15 02:20:53 +00:00
parent c1c8a3d6aa
commit 26b00f8566
7 changed files with 106 additions and 66 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
package api
import (
"context"
"net/http"
"git.dubyatp.xyz/dubyatp/scannerbot/server/db"
@@ -8,8 +9,9 @@ import (
)
func Start() {
db.InitScyllaDB()
defer db.CloseScyllaDB()
ctx := context.Background()
db.InitPostgres(ctx)
defer db.ClosePostgres()
r := chi.NewRouter()