sftpgo/dataprovider/sqlite_disabled.go

19 lines
279 B
Go
Raw Permalink Normal View History

//go:build nosqlite
// +build nosqlite
package dataprovider
import (
"errors"
2020-06-19 15:08:51 +00:00
"github.com/drakkan/sftpgo/version"
)
func init() {
2020-06-19 15:08:51 +00:00
version.AddFeature("-sqlite")
}
func initializeSQLiteProvider(basePath string) error {
return errors.New("SQLite disabled at build time")
}