status-go/vendor/github.com/mutecomm/go-sqlcipher/v4/flags.go

27 lines
607 B
Go
Raw Normal View History

package sqlite3
/*
// make go-sqlite3 use embedded library without code changes
#cgo CFLAGS: -DUSE_LIBSQLITE3
// enable encryption codec in sqlite
#cgo CFLAGS: -DSQLITE_HAS_CODEC
// use memory for temporay storage in sqlite
#cgo CFLAGS: -DSQLITE_TEMP_STORE=2
// use libtomcrypt implementation in sqlcipher
#cgo CFLAGS: -DSQLCIPHER_CRYPTO_LIBTOMCRYPT
// disable anything "not portable" in libtomcrypt
#cgo CFLAGS: -DLTC_NO_ASM
// disable assertions
#cgo CFLAGS: -DNDEBUG
// set operating specific sqlite flags
#cgo linux CFLAGS: -DSQLITE_OS_UNIX=1
#cgo windows CFLAGS: -DSQLITE_OS_WIN=1
*/
import "C"