removed the default cgo driver registration
This commit is contained in:
9
core/db_connect_nodefaultdriver.go
Normal file
9
core/db_connect_nodefaultdriver.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build nodefaultdriver
|
||||
|
||||
package core
|
||||
|
||||
import "github.com/pocketbase/dbx"
|
||||
|
||||
func DefaultDBConnect(dbPath string) (*dbx.DB, error) {
|
||||
panic("DBConnect config option must be set when the nodefaultdriver tag is used!")
|
||||
}
|
||||
Reference in New Issue
Block a user