Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Raw Documents & Collections #10

Open
adewes opened this issue Apr 22, 2014 · 0 comments
Open

Add Support for Raw Documents & Collections #10

adewes opened this issue Apr 22, 2014 · 0 comments

Comments

@adewes
Copy link
Owner

adewes commented Apr 22, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant