Open savejeff opened 1 year ago
Hi @savejeff , Thanks for sharing this and sorry about the late response. I will work on it and update the library soon!!
no problem. just wanted to give something back to the open source community.
I think making SQlite available to the Arduino community is a big thing. With the Filesystem abstraction, I'm also able to use the SdFat library and target other processors like RP2040 and SAMD etc. Teensy still has some problems though
Hi, as discussed in the other thread, here are the improvements I implemented for the lib
55
I have attached multiple versions that are more and more modified from the original version. the earlier might be easier to integrate.
sqlite3lib_github_fixes.zip
i renamed esp32.cpp with jhal.cpp
V1: only minor changes but added debug prints for understanding what the lib is doing V2: most of the fixes implemented but still similar to the original code <- I recommend this for importing fixes V3: refactoring and cleanup V4: my current version with working truncate.
V2-V4 uses my own implementation of a filesystem. it has the same functions as the esp fs classes like sd, sd_mmc, spiffs. replacing with the esp functions should be very easy.
if you have a question, just contact me. I recommend using a diff tool like beyond compare to compare the changes
Here are some additional explanations:
################## The File Struct #######################
##################### Log functions #########################
Log and LogD are just two levels of logging where LogD indicates debug prints only to the console, Log could also log to a logfile. just replace all LogD with Log
##################### truncate #############################
here the implementation of truncate in my file system class:
here the file flags: