sqlite: add option for meta-data about tables/queries

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 <ps.report@gmx.net>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Peter Seiderer 2018-03-02 20:34:35 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent fffbd2c9f7
commit 0b02fed5a0
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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