aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_opt_secure_delete_fast.go
diff options
context:
space:
mode:
authorGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-29 13:41:52 +0200
committerGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-29 13:41:52 +0200
commit6a80b70b7aa22a4c9e649f76a3381d8cc62a4a6d (patch)
tree6bd095ad22b4f3bebdc18352065638a8882cd4be /sqlite3_opt_secure_delete_fast.go
parentADD: PRAGMA query_only (diff)
downloadgolite-6a80b70b7aa22a4c9e649f76a3381d8cc62a4a6d.tar.gz
golite-6a80b70b7aa22a4c9e649f76a3381d8cc62a4a6d.tar.xz
Add: PRAGMA secure_delete
ADD: Connection PRAGMA ADD: Build tag for secure_delete mode: FAST
Diffstat (limited to 'sqlite3_opt_secure_delete_fast.go')
-rw-r--r--sqlite3_opt_secure_delete_fast.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/sqlite3_opt_secure_delete_fast.go b/sqlite3_opt_secure_delete_fast.go
new file mode 100644
index 0000000..8f86b21
--- /dev/null
+++ b/sqlite3_opt_secure_delete_fast.go
@@ -0,0 +1,15 @@
+// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
+// Copyright (C) 2018 G.J.R. Timmer <gjr.timmer@gmail.com>.
+//
+// Use of this source code is governed by an MIT-style
+// license that can be found in the LICENSE file.
+
+// +build sqlite_secure_delete_fast
+
+package sqlite3
+
+/*
+#cgo CFLAGS: -DSQLITE_SECURE_DELETE=FAST
+#cgo LDFLAGS: -lm
+*/
+import "C"