Commit 08013796 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

extmod/modbtree: open(): Support "in-memory" database with filename=None.

It's not really in-memory though, just uses anonymous temporary file on
parent e9739e33
......@@ -244,7 +244,10 @@ STATIC mp_obj_t mod_btree_open(size_t n_args, const mp_obj_t *pos_args, mp_map_t
{ MP_QSTR_server_side, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} },
const char *fname = mp_obj_str_get_str(pos_args[0]);
const char *fname = NULL;
if (pos_args[0] != mp_const_none) {
fname = mp_obj_str_get_str(pos_args[0]);
struct {
mp_arg_val_t server_side;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment