sftpgo-mirror/dataprovider/pgsql_disabled.go

19 lines
267 B
Go
Raw Normal View History

//go:build nopgsql
// +build nopgsql
package dataprovider
import (
"errors"
2021-06-26 05:31:41 +00:00
"github.com/drakkan/sftpgo/v2/version"
)
func init() {
2020-06-19 15:08:51 +00:00
version.AddFeature("-pgsql")
}
func initializePGSQLProvider() error {
return errors.New("PostgreSQL disabled at build time")
}