mirror of https://github.com/mattn/go-sqlite3.git
Fix opt_serialize when using libsqlcipher
This commit is contained in:
parent
04e7b79e83
commit
f208443ec7
|
@ -1,4 +1,4 @@
|
|||
// +build !libsqlite3 sqlite_serialize
|
||||
// +build !libsqlite3,!libsqlcipher sqlite_serialize
|
||||
|
||||
package sqlite3
|
||||
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !libsqlite3 sqlite_serialize
|
||||
// +build !libsqlite3,!libsqlcipher sqlite_serialize
|
||||
|
||||
package sqlite3
|
||||
|
||||
|
|
Loading…
Reference in New Issue