Changelog¶
Version Numbering¶
TinyDB follows the SemVer versioning guidelines. For more information, see semver.org
v3.2.0 (2016-04-25)¶
Add a way to specify the default table name via default_table (see pull request #98).
Add
db.purge_table(name)
to remove a single table (see pull request #100).- Along the way: celebrating 100 issues and pull requests! Thanks everyone for every single contribution!
Extend API documentation (see issue #96).
v3.1.3 (2016-02-14)¶
- Fix a bug when using unhashable elements (lists, dicts) with
Query.any
orQuery.all
queries (see a forum post by karibul).
v3.1.2 (2016-01-30)¶
- Fix a bug when using unhashable elements (lists, dicts) with
Query.any
orQuery.all
queries (see a forum post by karibul).
v3.1.1 (2016-01-23)¶
v3.1.0 (2015-12-31)¶
v3.0.0 (2015-11-13)¶
- Overhauled Query model:
where('...').contains('...')
has been renamed towhere('...').search('...')
.- Support for ORM-like usage:
User = Query(); db.find(User.name == 'John')
. where('foo')
is an alias forQuery().foo
.where('foo').has('bar')
is replaced by eitherwhere('foo').bar
orQuery().foo.bar
.- In case the key is not a valid Python identifier, array
notation can be used:
where('a.b.c')
is nowQuery()['a.b.c']
.
- In case the key is not a valid Python identifier, array
notation can be used:
- Checking for the existence of a key has to be done explicitely:
where('foo').exists()
.
- Migrations from v1 to v2 have been removed.
SmartCacheTable
has been moved to msiemens/tinydb-smartcache.- Serialization has been moved to msiemens/tinydb-serialization.
- Empty storages are now expected to return
None
instead of raisingValueError
. (see issue #67.
v2.4.0 (2015-08-14)¶
- Allow custom parameters for custom test functions (see issue #63 and pull request #64).
v2.3.2 (2015-05-20)¶
- Fix a forgotten debug output in the
SerializationMiddleware
(see issue #55). - Fix an “ignored exception” warning when using the
CachingMiddleware
(see pull request #54) - Fix a problem with symlinks when checking out TinyDB on OSX Yosemite (see issue #52).
v2.3.1 (2015-04-30)¶
- Hopefully fix a problem with using TinyDB as a dependency in a
setup.py
script (see issue #51).
v2.3.0 (2015-04-08)¶
- Added support for custom serialization. That way, you can teach TinyDB
to store
datetime
objects in a JSON file :) (see issue #48 and pull request #50) - Fixed a performance regression when searching became slower with every search (see issue #49)
- Internal code has been cleaned up
v2.2.2 (2015-02-12)¶
- Fixed a data loss when using
CachingMiddleware
together withJSONStorage
(see issue #47)
v2.2.1 (2015-01-09)¶
- Fixed handling of IDs with the JSON backend that converted integers to strings (see issue #45)
v2.2.0 (2014-11-10)¶
- Extended
any
andall
queries to take lists as conditions (see pull request #38) - Fixed an
decode error
when installing TinyDB in a non-UTF-8 environment (see pull request #37) - Fixed some issues with
CachingMiddleware
in combination withJSONStorage
(see pull request #39)
v2.1.0 (2014-10-14)¶
v2.0.0 (2014-09-05)¶
Warning
TinyDB changed the way data is stored. You may need to migrate your databases to the new scheme. Check out the Upgrade Notes for details.
- The syntax
query in db
has been removed, usedb.contains
instead. - The
ConcurrencyMiddleware
has been removed due to a insecure implementation (see issue #18). Consider tinyrecord instead. - Better support for working with Element IDs.
- Added support for nested comparisons.
- Added
all
andany
comparisons on lists. - Added optional :<http://tinydb.readthedocs.org/en/v2.0.0/usage.html#smart-query-cache>`_.
- The query cache is now a fixed size LRU cache.
v1.3.0 (2014-07-02)¶
- Fixed bug #7: IDs not unique.
- Extended the API:
db.count(where(...))
anddb.contains(where(...))
. - The syntax
query in db
is now deprecated and replaced bydb.contains
.
v1.1.0 (2014-05-06)¶
- Improved the docs and fixed some typos.
- Refactored some internal code.
- Fixed a bug with multiple
TinyDB?
instances.
v1.0.1 (2014-04-26)¶
- Fixed a bug in
JSONStorage
that broke the database when removing entries.
v1.0.0 (2013-07-20)¶
- First official release – consider TinyDB stable now.