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

27 lines
601 B
Go
Raw Normal View History

package sqlite3
/*
// 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 loadable extensions in sqlite
#cgo CFLAGS: -DSQLITE_OMIT_LOAD_EXTENSION=1
// 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"