2018-09-24 18:07:34 +00:00
|
|
|
package sqlite3
|
|
|
|
|
|
|
|
/*
|
2023-06-07 05:58:01 +00:00
|
|
|
// make go-sqlite3 use embedded library without code changes
|
|
|
|
#cgo CFLAGS: -DUSE_LIBSQLITE3
|
|
|
|
|
2018-09-24 18:07:34 +00:00
|
|
|
// 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"
|