Closed c0indev3l closed 6 years ago
It will be nice to provide a get method which return a default value when nothing was stored for a given key into database like a defaultdict http://docs.python.org/2/library/collections.html#collections.defaultdict
db.get('key', 'default_value')
Added this feature and created a PR https://github.com/patx/pickledb/pull/23
It will be nice to provide a get method which return a default value when nothing was stored for a given key into database like a defaultdict http://docs.python.org/2/library/collections.html#collections.defaultdict