Liking cljdoc? Tell your friends :D
Clojure only.

clojurewerkz.money.monger

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.
raw docstring

from-stored-mapclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close