diff options
author | EuAndreh <eu@euandre.org> | 2024-08-12 15:42:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-12 15:52:16 -0300 |
commit | 6bbc33b9e998af7ee45cca86e1290474603dff48 (patch) | |
tree | 5d0aff47783bc20dcf3f7862afdba0445e4c2fae /sqlite3_opt_serialize_omit.go | |
parent | Add Makefile and build skeleton (diff) | |
download | golite-6bbc33b9e998af7ee45cca86e1290474603dff48.tar.gz golite-6bbc33b9e998af7ee45cca86e1290474603dff48.tar.xz |
Build with "go tool" and hackishly bundle code from same package into one file each
Diffstat (limited to 'sqlite3_opt_serialize_omit.go')
-rw-r--r-- | sqlite3_opt_serialize_omit.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sqlite3_opt_serialize_omit.go b/sqlite3_opt_serialize_omit.go deleted file mode 100644 index d00ead0..0000000 --- a/sqlite3_opt_serialize_omit.go +++ /dev/null @@ -1,21 +0,0 @@ -//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") -} |