diff --git a/CHANGELOG.md b/CHANGELOG.md index f9c8b6e9..797a6c0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,7 +63,7 @@ } } ``` - Also note that if you are not planning to use the `core.DefaultDBConnect` fallback as part of your custom driver registration you can exclude the default pure Go driver from the build with the `-tags nodefaultdriver` build tag to reduce the binary size a little. + Also note that if you are not planning to use the `core.DefaultDBConnect` fallback as part of your custom driver registration you can exclude the default pure Go driver from the build with the build tag `-tags no_default_driver` to reduce the binary size a little. - Other minor UI improvements (updated the impersonate popup styles, added query param support for loading a collection based on its name, etc.). diff --git a/core/db_connect.go b/core/db_connect.go index 9f215c0e..189a544a 100644 --- a/core/db_connect.go +++ b/core/db_connect.go @@ -1,4 +1,4 @@ -//go:build !nodefaultdriver +//go:build !no_default_driver package core diff --git a/core/db_connect_nodefaultdriver.go b/core/db_connect_nodefaultdriver.go index 6a6ef32e..34e7a418 100644 --- a/core/db_connect_nodefaultdriver.go +++ b/core/db_connect_nodefaultdriver.go @@ -1,9 +1,9 @@ -//go:build nodefaultdriver +//go:build no_default_driver 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!") + panic("DBConnect config option must be set when the no_default_driver tag is used!") }