sqlite3_opt_serialize_omit.go 512 B

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