Provides Monger integration by extending Monger's BSON serialization protocol for org.joda.money.CurrencyUnit and Money.
Note that while dumping (serialization) of monetary amounts is automatic, they are stored in regular BSON documents. Monger and Money do not automatically instantiate monetary amounts when documents are loaded.
That can be done manually using the from-stored-map function.
Provides Monger integration by extending Monger's BSON serialization protocol for org.joda.money.CurrencyUnit and Money. Note that while dumping (serialization) of monetary amounts is automatic, they are stored in regular BSON documents. Monger and Money do not automatically instantiate monetary amounts when documents are loaded. That can be done manually using the from-stored-map function.
(from-stored-map m)
Instantiates a Money data structure from a map loaded from MongoDB. Assumes the serialization convention used by the monger.conversion/ConvertToDBObject extension in this namespace.
Instantiates a Money data structure from a map loaded from MongoDB. Assumes the serialization convention used by the monger.conversion/ConvertToDBObject extension in this namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close