sqlite: Add new compile-time options
authorStefan Fröberg <stefan.froberg@petroprogram.com>
Sun, 12 Aug 2012 09:17:00 +0000 (09:17 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 4 Nov 2012 11:15:09 +0000 (12:15 +0100)
[Peter: whitespace/wording tweaks]
Signed-off-by: Stefan Froberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/sqlite/Config.in
package/sqlite/sqlite.mk

index 25aaa3ff85f4c60ae78e2e7afdfc2877ec316b84..8766786010fb4608522dcc760c76299d335a683f 100644 (file)
@@ -22,3 +22,37 @@ config BR2_PACKAGE_SQLITE_STAT3
          planner that can help SQLite to choose a better query plan under
          certain situations.
 
+config BR2_PACKAGE_SQLITE_ENABLE_FTS3
+       bool "Enable version 3 of the full-text search engine"
+       depends on BR2_PACKAGE_SQLITE
+       help
+         When this option is defined in the amalgamation
+         (see http://www.sqlite.org/amalgamation.html), version 3 of
+         the full-text search engine is added to the build automatically.
+
+config BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY
+       bool "Enable sqlite3_unlock_notify() interface"
+       depends on BR2_PACKAGE_SQLITE
+       help
+         This option enables the sqlite3_unlock_notify() interface and its
+         accosiated functionality. See the documentation
+         http://www.sqlite.org/unlock_notify.html for additional information.
+
+config BR2_PACKAGE_SQLITE_SECURE_DELETE
+       bool "Set the secure_delete pragma on by default"
+       depends on BR2_PACKAGE_SQLITE
+       help
+         This compile-time option changes the default settings of the
+         secure_delete pragma. When this option is not used, secure_delete
+         defaults to off. When this option is present, secure_delete defaults
+         to on.
+
+         The secure_delete setting causes deleted content to be overwritten
+         with zeros. There is a small performance penalty for this since
+         additional I/O must occur. On the other hand, secure_delete can
+         prevent sensitive information from lingering in unused parts
+         of the database file after it has allegedly been deleted.
+         See the documentation on the
+         http://www.sqlite.org/pragma.html#pragma_secure_delete
+         for additional information.
+
index 7b5b4aa268fefdac2e1f7a642d7fe1d033cde8e4..0320cc4d57f1b069eb804eec1f5c8ae37e611c83 100644 (file)
@@ -21,6 +21,18 @@ ifeq ($(BR2_PACKAGE_SQLITE_STAT3),y)
 SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT3
 endif
 
+ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y)
+SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3
+endif
+
+ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y)
+SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
+endif
+
+ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y)
+SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
+endif
+
 SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
 
 SQLITE_CONF_OPT = \