Fix opt_serialize when using libsqlcipher

This commit is contained in:
Jonathan Giannuzzi 2023-03-27 17:21:35 +01:00
parent 04e7b79e83
commit f208443ec7
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// +build !libsqlite3 sqlite_serialize
// +build !libsqlite3,!libsqlcipher sqlite_serialize
package sqlite3

View File

@ -1,4 +1,5 @@
// +build libsqlite3,!sqlite_serialize
// +build libsqlite3 libsqlcipher
// +build !sqlite_serialize
package sqlite3
@ -12,9 +13,9 @@ import (
import "C"
func (c *SQLiteConn) Serialize(schema string) ([]byte, error) {
return nil, errors.New("sqlite3: Serialize requires the sqlite_serialize build tag when using the libsqlite3 build tag")
return nil, errors.New("sqlite3: Serialize requires the sqlite_serialize build tag when using the libsqlite3 or libsqlcipher build tags")
}
func (c *SQLiteConn) Deserialize(b []byte, schema string) error {
return errors.New("sqlite3: Deserialize requires the sqlite_serialize build tag when using the libsqlite3 build tag")
return errors.New("sqlite3: Deserialize requires the sqlite_serialize build tag when using the libsqlite3 or libsqlcipher build tags")
}

View File

@ -1,4 +1,4 @@
// +build !libsqlite3 sqlite_serialize
// +build !libsqlite3,!libsqlcipher sqlite_serialize
package sqlite3