Skip to contentSkip to conversation

sqlite: add json1 support

PATCH New bradford barr 2 participants 2 messages Jun 26, 2017 – Jul 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sqlite: add json1 support

From: bradford barr <[email protected]>

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

---
 package/sqlite/Config.in | 6 ++++++
 package/sqlite/sqlite.mk | 4 ++++
 2 files changed, 10 insertions(+)
package/sqlite/Config.in +6 -0
index c9fde53..cc8f328 100644
@@ -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
package/sqlite/sqlite.mk +4 -0
index 7b9c897..f6b249d 100644
@@ -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
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 sqlite: add json1 support

Hello,

Quoted 11 lines · bradford barr

From: bradford barr <[email protected]>

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

---
 package/sqlite/Config.in | 6 ++++++
 package/sqlite/sqlite.mk | 4 ++++
 2 files changed, 10 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com