Debian Codegraph @

sqlite3_opt_serialize_omit.go

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