FS#8852 - Add SQLite to the pluginlib
Opened by Nicolas Pennequin (nicolas_p) - Sunday, 06 April 2008, 01:28 GMT
Last edited by Alex Parker (BigBambi) - Sunday, 06 June 2010, 11:31 GMT
SQLite 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 :
(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 email@example.com/msg22708.html"> http://firstname.lastname@example.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 :)
View Dependency Graph
Sunday, 06 June 2010, 11:31 GMT
Reason for closing: Later
Additional comments about closing: Added to http://www.rockbox.org/wiki/UsefulPatche s