soju/database/sqlite_stub.go
Simon Ser a9949c2e95 database/sqlite: make optional
SQLite requires cgo, for some use cases this is undesirable.
2022-09-11 13:57:00 +02:00

18 lines
271 B
Go

//go:build nosqlite
package database
import (
"errors"
)
const SqliteEnabled = false
func OpenSqliteDB(source string) (Database, error) {
return nil, errors.New("SQLite support is disabled")
}
func OpenTempSqliteDB() (Database, error) {
return OpenSqliteDB("")
}