added template for new golang backend
This commit is contained in:
11
server/db/database.go
Normal file
11
server/db/database.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
scn "blackforestbytes.com/simplecloudnotifier"
|
||||
"database/sql"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
func NewDatabase(conf scn.Config) (*sql.DB, error) {
|
||||
return sql.Open("sqlite3", conf.DBFile)
|
||||
}
|
||||
Reference in New Issue
Block a user