diff --git a/sqlite3_opt_serialize.go b/sqlite3_opt_serialize.go index 555ace7..a5ec121 100644 --- a/sqlite3_opt_serialize.go +++ b/sqlite3_opt_serialize.go @@ -1,4 +1,4 @@ -// +build !libsqlite3 sqlite_serialize +// +build !libsqlite3,!libsqlcipher sqlite_serialize package sqlite3 diff --git a/sqlite3_opt_serialize_omit.go b/sqlite3_opt_serialize_omit.go index b154dd3..2827e9c 100644 --- a/sqlite3_opt_serialize_omit.go +++ b/sqlite3_opt_serialize_omit.go @@ -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") } diff --git a/sqlite3_opt_serialize_test.go b/sqlite3_opt_serialize_test.go index 624c5a9..0cd683b 100644 --- a/sqlite3_opt_serialize_test.go +++ b/sqlite3_opt_serialize_test.go @@ -1,4 +1,4 @@ -// +build !libsqlite3 sqlite_serialize +// +build !libsqlite3,!libsqlcipher sqlite_serialize package sqlite3