48 Commits (d1bf0eeb0fb0c485da076075a15ffdfd5fb68303)

Author SHA1 Message Date
Michael Vornovitsky 6db91dfefb extmod/modbtree: Add checks for already-closed database. 1 year ago
Damien George cd8eea2ae9 all: Update extmod, ports, examples to build with new berkeley-db lib. 8 months ago
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Damien George 18caf49a7f extmod/modbtree: Undefine queue macros before including berkeley-db. 1 year ago
Damien George 95082693c3 extmod/modbtree: Move system includes within MICROPY_PY_BTREE guard. 2 years ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 6da41b5900 py/obj: Merge getiter and iternext mp_obj_type_t slots. 2 years ago
Jim Mussared e8355eb163 py/obj: Add "full" and "empty" non-variable-length mp_obj_type_t. 3 years ago
Jim Mussared 9dce82776d all: Remove unnecessary locals_dict cast. 2 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
David Lechner a565811f23 extmod/modbtree: Use buffer protocol for keys/values. 2 years ago
Damien George efe23aca71 all: Remove third argument to MP_REGISTER_MODULE. 2 years ago
Jim Mussared 4eab44a1ec extmod: Make extmod modules use MP_REGISTER_MODULE. 3 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Damien George 73c58150f5 extmod/modbtree: Retain reference to underlying stream so it's not GC'd. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 97eca38c4f py: Add mp_raise_type helper macro and use it where appropriate. 5 years ago
Damien George bbeaafd9aa extmod: Add dynamic-runtime guards to btree/framebuf/uheapq/ure/uzlib. 5 years ago
Damien George e5acd06ad5 extmod/modbtree: Use mp_printf instead of printf. 5 years ago
Damien George 2ee9e1a4ed extmod/modbtree: Make FILEVTABLE const to put it in ROM. 5 years ago
Damien George b8b2525576 extmod/modbtree: Update to work with new mp_stream_posix_XXX signatures. 6 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Damien George aa7be82a4d all: Don't include system errno.h when it's not needed. 7 years ago
Damien George 204ded848e extmod: Update for changes to mp_obj_str_get_data. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Paul Sokolovsky 4463d8a910 extmod/modbtree: Rename "sync" method to "flush" for consistency. 8 years ago
w4kpm ec22d1739d extmod/modbtree: Add method to sync the database. 8 years ago
Damien George 75af908c0e extmod: Use mp_raise_OSError helper function. 8 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct. 8 years ago
Krzysztof Blazewicz 5a5449d4eb extmod/modbtree: do CHECK_ERROR after __bt_seq() 8 years ago
Paul Sokolovsky d79342d33e extmod/modbtree: open(): Add option kwargs. 8 years ago
Paul Sokolovsky 3eb532e974 extmod/modbtree: Implement __contains__ operation. 8 years ago
Paul Sokolovsky 99061d1dcb extmod/modbtree: Switch to accepting stream object instead of filename. 8 years ago
Paul Sokolovsky 25df419c67 extmod/modbtree: Check __bt_open() return value for error. 8 years ago
Paul Sokolovsky 417dc0c05d extmod/modbtree: Fixes for nanbox build. 8 years ago
Paul Sokolovsky b09cd0e1ec extmod/modbtree: Fix unused argument warning. 8 years ago
Paul Sokolovsky 2f7ebf16de extmod/modbtree: Cleverly implement "for key in btree:" syntax. 8 years ago
Paul Sokolovsky 6b088a671a extmod/modbtree: Implement keys(), values(), items() iterators. 9 years ago
Paul Sokolovsky 080137961d extmod/modbtree: open(): Support "in-memory" database with filename=None. 9 years ago
Paul Sokolovsky e9739e3315 extmod/modbtree: __getitem__() should raise KeyError for non-existing key. 9 years ago
Paul Sokolovsky e6e7e0e9c5 extmod/modbtree: items(): Implement DESC flag. 9 years ago
Paul Sokolovsky 332545baa3 extmod/modbtree: items(): Implement "end key inclusive" flag. 9 years ago
Paul Sokolovsky d0416ff915 extmod/modbtree: Actually implement end key support for .items(). 9 years ago
Paul Sokolovsky 1babeb47a4 extmod/modbtree: Implement .items() iterator. 9 years ago
Paul Sokolovsky 422396cece extmod/modbtree: Handle default value and error check. 9 years ago
Paul Sokolovsky 8072162170 extmod/modbtree: Initial implementation of "btree" module based on BerkeleyDB. 9 years ago