Files
go-sqlcipher/flags.go
T
Frank Braun f799951b4a remove unnecssary flag
This pulls in the pthreads library on Windows.
It is not necessary to make libtomcrypt thread safe, a mutex is already
applied in sqlcipher.
2017-09-20 22:46:53 +00:00

27 lines
601 B
Go

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"