Fork of github.com/mattn/go-sqlite3 v1.14.47, rebranded to package csqlite and vendored in-tree (SQLite amalgamation sqlite3-binding.c/.h + cgo driver + callback trampolines + optional-feature files) so the Hanzo stack depends on no external go-sqlite3 module. Registers the "sqlite3" database/sql driver name from this repo. SQLCipher at-rest encryption unchanged: link system libsqlcipher via -tags libsqlite3. Preserves upstream MIT license (LICENSE) with Hanzo-first NOTICE attribution. Verified: CGO_ENABLED=1 build+test (amalgamation) green; -tags libsqlite3 + libsqlcipher build+test green; CGO_ENABLED=0 build green; zero mattn in deps.
22 lines
555 B
Go
22 lines
555 B
Go
//go:build libsqlite3 && !sqlite_serialize
|
|
// +build libsqlite3,!sqlite_serialize
|
|
|
|
package csqlite
|
|
|
|
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")
|
|
}
|