blitzdb
blitzdb copied to clipboard
Add Support for Raw Documents & Collections
Currently Blitz uses an object-oriented document schema by default: In order to store and retrieve documents, you need to define a class derived from the Document
class.
Make it possible to use Blitz in a non-object-oriented way:
- Write a polymorphous version of the
save
function that accepts a collection name and a Python dictionary instead of aDocument
instance - Make the
get
andfilter
functions work with collection names instead ofDocument
classes - Possibly add a
Collection
class that represents a given collection in a database (like MongoDB, useful for inserting, searching etc.) - Change the
delete
function so that it works with Python dictionaries
Please feel free to discuss, provide feedback and ask questions in this thread!
Update: I started working on this in the raw_interface
branch. Feel free to check out the code there and contribute to it.