a9949c2e95
SQLite requires cgo, for some use cases this is undesirable.
18 lines
271 B
Go
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("")
|
|
}
|