File: sqlite3_opt_serialize_omit.go

package info (click to toggle)
icingadb 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 44,864 kB
  • sloc: ansic: 167,158; asm: 7,097; sql: 3,790; sh: 1,415; cpp: 1,132; makefile: 387; xml: 160
file content (21 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//go:build libsqlite3 && !sqlite_serialize
// +build libsqlite3,!sqlite_serialize

package sqlite3

import (
	"errors"
)

/*
#cgo CFLAGS: -DSQLITE_OMIT_DESERIALIZE
*/
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")
}

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")
}