gemini-search

A simple search engine for Geminispace
git clone git://git.laack.co/gemini-search.git
Log | Files | Refs | README

sqlite3_opt_serialize_omit.go (555B)


      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 }