sqlite3_opt_serialize_omit.go raw
1 //go:build libsqlite3 && !sqlite_serialize
2 // +build libsqlite3,!sqlite_serialize
3
4 package sqlite3
5
6 import (
7 "errors"
8 )
9
10 /*
11 #cgo CFLAGS: -DSQLITE_OMIT_DESERIALIZE
12 */
13 import "C"
14
15 func (c *SQLiteConn) Serialize(schema string) ([]byte, error) {
16 return nil, errors.New("sqlite3: Serialize requires the sqlite_serialize build tag when using the libsqlite3 build tag")
17 }
18
19 func (c *SQLiteConn) Deserialize(b []byte, schema string) error {
20 return errors.New("sqlite3: Deserialize requires the sqlite_serialize build tag when using the libsqlite3 build tag")
21 }
22