1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-20 06:21:06 +02:00

renamed build tag

This commit is contained in:
Gani Georgiev 2024-11-01 19:09:48 +02:00
parent b11ea60436
commit 1a1e3a2741
3 changed files with 4 additions and 4 deletions

View File

@ -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.). - Other minor UI improvements (updated the impersonate popup styles, added query param support for loading a collection based on its name, etc.).

View File

@ -1,4 +1,4 @@
//go:build !nodefaultdriver //go:build !no_default_driver
package core package core

View File

@ -1,9 +1,9 @@
//go:build nodefaultdriver //go:build no_default_driver
package core package core
import "github.com/pocketbase/dbx" import "github.com/pocketbase/dbx"
func DefaultDBConnect(dbPath string) (*dbx.DB, error) { 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!")
} }