3 ms·
Here's a header file that basically mirrors some of what the article is talking about, the layout of pages and the btree and so on (~lines 100-200) https://git
by photochemsyn 4y ago
Here's a header file that basically mirrors some of what the article is talking about, the layout of pages and the btree and so on (~lines 100-200)
https://github.com/sqlite/sqlite/blob/master/src/btreeInt.h https://github.com/sqlite/sqlite/blob/master/src/btreeInt.h
The code for the btree functions is here and is a bit over my head TBH with all the locks and permissions and so on but it's a nice example of how to comment code I think:
https://github.com/sqlite/sqlite/blob/master/src/btree.c https://github.com/sqlite/sqlite/blob/master/src/btree.c