sqlite3_opt_serialize_omit.go 555 B

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