EARFQUAKE

This commit is contained in:
Mitsu
2025-07-07 21:05:36 +02:00
commit 54123ab5ec
12 changed files with 871 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package database
import (
"database/sql"
_ "github.com/mattn/go-sqlite3"
"github.com/mizuw/laterna/server/globals"
)
func ConnectDB() {
db, err := sql.Open("sqlite3", "./db.sql")
if err != nil {
globals.DBLogger.Printf("An Error occured while connecting to the database: %v", err)
}
globals.DBLogger.Printf("Connected")
defer db.Close()
}
+1
View File
@@ -0,0 +1 @@
package database