blitzdb icon indicating copy to clipboard operation
blitzdb copied to clipboard

Add Support for Raw Documents & Collections

Open adewes opened this issue 10 years ago • 0 comments

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 a Document instance
  • Make the get and filter functions work with collection names instead of Document 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.

adewes avatar Apr 22 '14 23:04 adewes