sqlite: add json1 support

Add support for the JSON1 SQLite extensions. This extension allows SQLite to
store and query JSON objects in a database.

Signed-off-by: Bradford Barr <bradford@density.io>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bradford Barr 2017-06-26 09:17:44 -07:00 committed by Thomas Petazzoni
parent a0c53973f8
commit a2538e4b19
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,12 @@ config BR2_PACKAGE_SQLITE_ENABLE_FTS3
(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_JSON1
bool "Enable the JSON extensions for SQLite"
help
When this option is defined in the amalgamation, the JSON
extensions are added to the build automatically.
config BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY
bool "Enable sqlite3_unlock_notify() interface"
help

View File

@ -19,6 +19,10 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y)
SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3
endif
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y)
SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1
endif
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y)
SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
endif