SQLite Backup 按 CGO build tag 隔离,支持静态编译(Alpine musl)

This commit is contained in:
Muse
2026-10-19 21:20:36 +08:00
parent 6381587307
commit 9105f7f364
3 changed files with 105 additions and 82 deletions
+9
View File
@@ -0,0 +1,9 @@
//go:build !cgo
package database
import "errors"
func BackupSQLite(dstPath string) error {
return errors.New("sqlite backup requires CGO build")
}