This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8852 - Add SQLite to the pluginlib
Attached to Project:
Rockbox
Opened by Nicolas Pennequin (nicolas_p) - Sunday, 06 April 2008, 03:28 GMT+2
Last edited by Alex Parker (BigBambi) - Sunday, 06 June 2010, 13:31 GMT+2
Opened by Nicolas Pennequin (nicolas_p) - Sunday, 06 April 2008, 03:28 GMT+2
Last edited by Alex Parker (BigBambi) - Sunday, 06 June 2010, 13:31 GMT+2
|
DetailsSQLite is a fast and lightweight SQL database engine library.
See http://www.sqlite.org for more information. This patch makes it available to use in a plugin and provides a usage example. Additionally to the patch, the actual library is required. You need to download the amalgamation, available at http://www.sqlite.org/sqlite-amalgamation-3_5_7.zip It is not included for obvious size reasons. Extract both sqlite3.c and sqlite3.h to apps/plugins/lib/ and add the following line to the top of sqlite3.c : #include sqlite3_aux.h (this file contains everything necessary to make the library compile in the rockbox environment) The binary size is still very high, we need to strip some features off to make it smaller. For testing, an SQLite version of the Northwind database is available atsqlite-users@sqlite.org/msg22708.html"> http://www.mail-archive.com/sqlite-users@sqlite.org/msg22708.html This is mainly an experiment. I have no intention of adding it to the core or use it to replace the current Database. However, it might open interesting possibilities for plugins. Thanks to Frank Gevaerts for helping me with this :) |
Closed by Alex Parker (BigBambi)
Sunday, 06 June 2010, 13:31 GMT+2
Reason for closing: Later
Additional comments about closing: Added to http://www.rockbox.org/wiki/UsefulPatches
Sunday, 06 June 2010, 13:31 GMT+2
Reason for closing: Later
Additional comments about closing: Added to http://www.rockbox.org/wiki/UsefulPatches
Full SQLite compile: sqlite3.o = 476708 bytes
Every optional feature omitted SQLite compile: sqlite3.o = 280664 bytes
tagcache.o: 35880 bytes
These numbers are from SQLite 3.5.9 and the latest SVN of Rockbox. I know object file size != final linked size but it's useful for comparison.