Page 1 of 1

Help with BTree

Posted: Mon Dec 30, 2019 7:27 pm
by nebenzahl
Hello
I am implementing a database with BTREE on ESP32.
I read and reread the documentation and still remained many doubts.
I saw that BTREE is very limited.
But if anyone has an example could indicate me.
I need to know how many records are in the database, and how to delete records per record.
Is there another database you could use in this case?
I read something about the ffilib library that would use sqlite.
Someone give me an idea.

Re: Help with BTree

Posted: Mon Dec 30, 2019 8:06 pm
by Roberthh
There is a btree test case in the repository: https://github.com/micropython/micropyt ... /btree1.py
That may give you some hints about usage. ffilib is present on the Unix port only.

Re: Help with BTree

Posted: Mon Dec 30, 2019 8:35 pm
by nebenzahl
Wonderful, there are several examples of how to use BTREE.
Thank you, as I always find help here, you are very generous.