From patchwork Fri Mar 2 19:34:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 880814 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ztKJj5tbBz9s1v for ; Sat, 3 Mar 2018 06:35:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 641BC87E33; Fri, 2 Mar 2018 19:35:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0n7JvnFIml3C; Fri, 2 Mar 2018 19:35:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id BF28687D36; Fri, 2 Mar 2018 19:35:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C63B51C0F8E for ; Fri, 2 Mar 2018 19:35:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C149689043 for ; Fri, 2 Mar 2018 19:35:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yXrDIVl5I6TX for ; Fri, 2 Mar 2018 19:35:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by whitealder.osuosl.org (Postfix) with ESMTPS id EB38E88FF1 for ; Fri, 2 Mar 2018 19:35:09 +0000 (UTC) Received: from localhost.localdomain ([92.75.40.49]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Leux5-1eM4LQ31Jv-00qn6m; Fri, 02 Mar 2018 20:34:39 +0100 From: Peter Seiderer To: buildroot@buildroot.org Date: Fri, 2 Mar 2018 20:34:35 +0100 Message-Id: <20180302193437.15573-2-ps.report@gmx.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180302193437.15573-1-ps.report@gmx.net> References: <20180302193437.15573-1-ps.report@gmx.net> X-Provags-ID: V03:K0:CiQgRy5uzUdZ9KiX+g0U8uSqjzvwOiPdy94lrBSWzPivrJ8ziPq d8ccElit3UFbhDCEB5V5WyizOS8e5VjFsI7Wp2OFlralsgj7p5Lvl0THpPSlLXkQOGZ0Ke/ iOVzs4r/w3YbOxDltOP83D1jfjd9wKwIVAb/cqet0fOalhWJHvNdwFYoMnEIJrMcxNp3CdY LuegbBWL2cJClOJlEPb9Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:gtBEoS1I/Eg=:E92wwpAsF4220v/QtbZOeV d77ak8djM8qzuz94aK5URW/bUXb3/vcRx0O1oCOjZp6zoC9skarmlpnKI3xigza9N/AObpjBL Znt59UgrTmMLakMkCmc0QvrBNWVuOoJrqLavINvUlgkU6gPLiV8LD8+M6qABwHpKbbtQg3sFp 58GaZ3y4nJBkdm90ljSQ8dapztjYuWWKQOlH0u5c9u05h6ZNQxlNB4lgkEq0gX9ZoY96gwu3+ dCpiXaS0kA+yZRNm7HbOvPV1Ua74I9Tqha5Inr7E8TY1BR8YurHFfNBfydPr26gKHhE1qo3t0 KezrByggYI2Zh1wiQxp20FU3CC28sXmAwgKjMpDNtXPvJ623wdc+uY7ihSUNdsrUYPk9AhUoD Pv0r98S1A5yO+STFtL9/NGTnUabYjq4sGRJ7UDKo5ojC5CuCLNg9b/5ZQrKcowE0VR5SW/Qft LmFcbv/TnDsiw9DdqskrLBDUU+mR9x4D2tYj7PKzKOnK8Z6x/fRH0mwfKE36WVjxLSr3StYAu xXF4D8U8UXu2hYgu82VxkbSUnTSiOaXI11QDQXruroFzAlmFjd9y6c9HMAJf31KHwMRrNBap6 n8kYfW03MdGGEnzTblEJAnCWgONO3gxR11M6XmE3N64ecApVODCXvLYGA9pAnmMybr7IuWV0M Wv24QfuO4BaoUlvwNK+S8honKeAU96vLdjjvvhk9jk2bXbZX6zsivRTgw6i76R7tQRG3PXSWA u3hP12P+Nzt4EiBThrvQ0dNA8vZs4zXCVSqh/5XyHo17yIqnhHP+pc3or7xnARW5RXiOdBdsi MUR2ebVdJ1qgvoJleQL35NoLfYb3Q== Subject: [Buildroot] [Patch next v2 1/3] sqlite: add option for meta-data about tables/queries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Ga=C3=ABl_PORTAY?= MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Enables SQLITE_ENABLE_COLUMN_METADATA to gain access to: - sqlite3_column_database_name() - sqlite3_column_database_name16() - sqlite3_column_table_name() - sqlite3_column_table_name16() - sqlite3_column_origin_name() - sqlite3_column_origin_name16() Signed-off-by: Peter Seiderer --- Changes v1 -> v2: - no changes --- package/sqlite/Config.in | 7 +++++++ package/sqlite/sqlite.mk | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/package/sqlite/Config.in b/package/sqlite/Config.in index ec7396860c..517af50e67 100644 --- a/package/sqlite/Config.in +++ b/package/sqlite/Config.in @@ -16,6 +16,13 @@ config BR2_PACKAGE_SQLITE_STAT3 query planner that can help SQLite to choose a better query plan under certain situations. +config BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA + bool "Enable convenient access to meta-data about tables and queries" + help + When this option is defined there are some additional APIs + enabled to acces meta-data about tables and queries (see + https://sqlite.org/compile.html). + config BR2_PACKAGE_SQLITE_ENABLE_FTS3 bool "Enable version 3 of the full-text search engine" help diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk index e8ce92df56..d0030d43ab 100644 --- a/package/sqlite/sqlite.mk +++ b/package/sqlite/sqlite.mk @@ -15,6 +15,10 @@ ifeq ($(BR2_PACKAGE_SQLITE_STAT3),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT3 endif +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) +SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA +endif + ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 endif