SimpleCloudNotifier/server/db/database.go

12 lines
217 B
Go
Raw Normal View History

2022-11-13 19:17:07 +01:00
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)
}