Skip to content

Arduino library to store data on a sdcard with an OleDb-like interface

License

Notifications You must be signed in to change notification settings

trlink/WSFFileDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSFFileDB

Arduino library to store data on a sdcard with an OleDb-like interface. The library is thread-safe.

To create a database you need to provide a table definition:

int nFields[] = {sizeof(uint32_t), sizeof(uint32_t), 25};

This definition allows 3 values, with 2 uint32_t and 25 bytes additional storage for other data (byte, char, ...). Now you can create an instance of the database class:

CWSFFileDB db((fs::SDFS*)&SD, "/data.tbl", (int*)&nFields, 3, true, 25);

The data-file will be created and you can now open an recordset object to read or manipulate data:

` //create the recordset

CWSFFileDBRecordset rs(&db); `

The CWSFFileRecordSet-class provides methods to navigate through the data (moveNext(), moveFirst()) or to change/delete data...

Check the sample for more information...

About

Arduino library to store data on a sdcard with an OleDb-like interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages