An ultra-lightweight embedded database. More...
An ultra-lightweight embedded database.
This package provides a Key-Value database and a Time series database that can be used with a MTD or a file system backend.
It is recommended to use the use the MTD backend for performance reasons, but if you have a filesystem anyway or want to store the database as a file there is also a VFS backend that can be used instead.
To enable the MTD backend, select the flashdb_mtd
module.
FlashDB can only use a single MTD device. To assign a MTD device for FlashDB to use, call
FlashDB allows for multiple partitions on the device. They have to configured at compile time:
The partition names have to be used in fdb_kvdb_init()
/ fdb_tsdb_init()
.
To enable the VFS Backend, select the flashdb_vfs
module.
Here instead of partitions, FlashDB uses directories to store the data. The directory names are used instead of the partition names in fdb_kvdb_init()
/ fdb_tsdb_init()
and you have to enable file mode by calling
for the Key-Value database and
for the time-series database.
To enable the Key-Value database, select the flashdb_kvdb
module.
For use of the FlashDB API, refer to the FlashDB documentation.
To enable the Key-Value database, select the flashdb_tsdb
module.
For use of the FlashDB API, refer to the FlashDB documentation.
Files | |
file | fal_cfg.h |
Flash Abstraction Layer partition configuration. | |