Paul Sokolovsky
|
2f7ebf16de
|
extmod/modbtree: Cleverly implement "for key in btree:" syntax.
I.e. make it work like btree.keys(), while still not using a separate
iterator type.
|
2016-06-23 20:08:37 +03:00 |
|
Paul Sokolovsky
|
6b088a671a
|
extmod/modbtree: Implement keys(), values(), items() iterators.
Each takes optional args of starting key, ending key, and flags (ending
key inclusive, reverse order).
|
2016-06-20 15:50:31 +03:00 |
|
Paul Sokolovsky
|
080137961d
|
extmod/modbtree: open(): Support "in-memory" database with filename=None.
It's not really in-memory though, just uses anonymous temporary file on
disk.
|
2016-06-18 01:31:57 +03:00 |
|
Paul Sokolovsky
|
e9739e3315
|
extmod/modbtree: __getitem__() should raise KeyError for non-existing key.
|
2016-06-18 01:30:49 +03:00 |
|
Paul Sokolovsky
|
e6e7e0e9c5
|
extmod/modbtree: items(): Implement DESC flag.
|
2016-06-18 00:47:26 +03:00 |
|
Paul Sokolovsky
|
332545baa3
|
extmod/modbtree: items(): Implement "end key inclusive" flag.
|
2016-06-17 00:08:55 +03:00 |
|
Paul Sokolovsky
|
d0416ff915
|
extmod/modbtree: Actually implement end key support for .items().
|
2016-06-16 18:16:33 +03:00 |
|
Paul Sokolovsky
|
1babeb47a4
|
extmod/modbtree: Implement .items() iterator.
|
2016-06-16 17:31:24 +03:00 |
|
Paul Sokolovsky
|
422396cece
|
extmod/modbtree: Handle default value and error check.
|
2016-06-15 04:18:44 +03:00 |
|
Paul Sokolovsky
|
8072162170
|
extmod/modbtree: Initial implementation of "btree" module based on BerkeleyDB.
This implements basic wrapping of native get/put/seq API, and then dictionary
access protocol. Native API is intended to be superceded going forward.
|
2016-06-14 21:51:59 +03:00 |
|