You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
save
function that accepts a collection name and a Python dictionary instead of aDocument
instanceget
andfilter
functions work with collection names instead ofDocument
classesCollection
class that represents a given collection in a database (like MongoDB, useful for inserting, searching etc.)delete
function so that it works with Python dictionariesPlease 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.The text was updated successfully, but these errors were encountered: