Closed matthewjwhite closed 3 years ago
Pros
User::save
method, using its built-in, and likely other code.Cons
User
inherits from Entity
. Multiple inheritance may introduce additional complications if it also inherits from Document
.Document
class, with class variables whose names end up mapping to the names of the instance variables of the objects you retrieve from the DB.Not planning on using mongoengine
at this point - the from_db
/to_db
stuff (see code) has worked out fine so far.
MongoEngine is neat little ORM for Python, w/ Mongo.
See the description in #14 for more context, could help to clean up the linkage b/w DB/YAML field names and Python variable names.
To Close