gabipetrovay/node-orientdb — pull request #7 by ffissore (2012-03-20 09:20:16+00:00)
Title: db.save for saving a JSON doc (save=create if new, update if not)

to add the method db.save I've also added serialize and deserialize functions to parser and clusters and classes to the db object on connection open and reload (needed for adding the class you are using with a document, if that class doesn't exist), plus a bit of cleanup
note how now every function in parser is exported at the end rather than on the fly with exports.function_name: that avoids thinking about using or not "this" to access public or private functions. they are all private, until the final export

please review the code: I'd like to have your voice on its quality