Changelog¶
v2.0.0¶
Major release - Full database abstraction layer.
New features:
DatabaseBackendABC - all 6 backends implement the same interfaceReal typed tables with
create_table(),get_tables(),get_schema()Column types:
Integer,Text,Float,Boolean,Blob,Timestamp,JSON,PickleChainable
Queryclass withfilter(),order_by(),select(),limit(),offset()Django-style filter operators:
__gt,__gte,__lt,__lte,__ne,__contains,__startswith,__endswith,__like,__in,__notin,__isnullfirst(),one(),count(),exists()query methodsBackend-level pickle serialization via
serialization="pickle"InMemoryQueryfor non-SQL backends (JSON, Pickle, Redis, Mongo)Blobcolumn type auto-pickles non-bytes valuesTableSchemawith constraints, validation, and SQL generationSphinx documentation with Furo theme
Backward compatibility:
SQLiteDatabase,JSONFileDatabase,PickleFileDatabasestill support the key-value APIConnectionErrorrenamed toDatabaseConnectionError(alias kept)
v1.0.0¶
Initial release:
Key-value store API (
write,read,delete,exists,clear,keys)SQLite, PostgreSQL, JSON file, Pickle file, Redis, MongoDB backends
JSON serialization with binary fallback