matrix-pretix/internal/database/database.go

16 lines
281 B
Go
Raw Permalink Normal View History

2022-07-24 02:40:44 +02:00
package database
import (
"database/sql"
_ "github.com/mattn/go-sqlite3"
"git.luj0ga.de/franconian/matrix-pretix/internal/config"
)
const DBDriverName = "sqlite3"
func Open(config *config.DatabaseConfig) (*sql.DB, error) {
return sql.Open(DBDriverName, config.Filename)
}