From 025e8fce45027bede346c36d4f7ac0ed85cc0205 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sun, 29 Jan 2012 07:30:11 +0400 Subject: [PATCH] Ditto for monger.collection/create --- src/monger/collection.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/monger/collection.clj b/src/monger/collection.clj index 1e01315..ce955d9 100644 --- a/src/monger/collection.clj +++ b/src/monger/collection.clj @@ -415,7 +415,9 @@ (defn create "Creates a collection with a given name and options." ([^String collection ^Map options] - (.createCollection monger.core/*mongodb-database* collection (to-db-object options)))) + (.createCollection monger.core/*mongodb-database* collection (to-db-object options))) + ([^DB db ^String collection ^Map options] + (.createCollection db collection (to-db-object options)))) (defn drop "Deletes collection from database.