connected remotegameprivate and backend

This commit is contained in:
2023-02-24 15:41:40 +00:00
parent 574317d286
commit 0fadadee2d
24 changed files with 2101 additions and 151 deletions

15
server/connection.go Normal file
View File

@@ -0,0 +1,15 @@
package server
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
// Connect Connection to the Sqlite database
func Connect() (*gorm.DB, error) {
db, err := gorm.Open(sqlite.Open("xplane11-webRTC.db"), &gorm.Config{})
if err != nil {
return nil, err
}
return db, nil
}