SQLite Backup 按 CGO build tag 隔离,支持静态编译(Alpine musl)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
//go:build !cgo
|
||||
|
||||
package database
|
||||
|
||||
import "errors"
|
||||
|
||||
func BackupSQLite(dstPath string) error {
|
||||
return errors.New("sqlite backup requires CGO build")
|
||||
}
|
||||
Reference in New Issue
Block a user