Help with BTree

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
nebenzahl
Posts: 26
Joined: Mon Jul 01, 2019 5:38 pm
Location: Uruguaiana, Brazil
Contact:

Help with BTree

Post by nebenzahl » Mon Dec 30, 2019 7:27 pm

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.
Eng. Luiz Nebenzahl

User avatar
Roberthh
Posts: 2022
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Help with BTree

Post by Roberthh » Mon Dec 30, 2019 8:06 pm

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.

User avatar
nebenzahl
Posts: 26
Joined: Mon Jul 01, 2019 5:38 pm
Location: Uruguaiana, Brazil
Contact:

Re: Help with BTree

Post by nebenzahl » Mon Dec 30, 2019 8:35 pm

Wonderful, there are several examples of how to use BTREE.
Thank you, as I always find help here, you are very generous.
Eng. Luiz Nebenzahl

Post Reply