Cosmetics
This commit is contained in:
parent
f049fed33b
commit
d203f27479
2 changed files with 5 additions and 6 deletions
|
|
@ -11,7 +11,8 @@
|
|||
(ns monger.db
|
||||
(:refer-clojure :exclude [find remove count drop distinct empty?])
|
||||
(:import [com.mongodb Mongo DB DBCollection])
|
||||
(:require [monger core]))
|
||||
(:require monger.core)
|
||||
(:use monger.conversion))
|
||||
|
||||
|
||||
|
||||
|
|
@ -19,7 +20,7 @@
|
|||
"Adds a new user for this db"
|
||||
([^String username, ^chars password]
|
||||
(.addUser ^DB monger.core/*mongodb-database* username password))
|
||||
([^DB database ^String username, ^chars password]
|
||||
([^DB database ^String username ^chars password]
|
||||
(.addUser ^DB database username password)))
|
||||
|
||||
|
||||
|
|
@ -30,7 +31,6 @@
|
|||
([^DB database]
|
||||
(.dropDatabase ^DB database)))
|
||||
|
||||
|
||||
(defn get-collection-names
|
||||
"Returns a set containing the names of all collections in this database."
|
||||
([]
|
||||
|
|
|
|||
|
|
@ -8,9 +8,8 @@
|
|||
;; You must not remove this notice, or any other, from this software.
|
||||
|
||||
(ns monger.result
|
||||
(:import [com.mongodb DBObject WriteResult MapReduceOutput]
|
||||
[clojure.lang IPersistentMap])
|
||||
(:require [monger conversion]))
|
||||
(:import [com.mongodb DBObject WriteResult MapReduceOutput])
|
||||
(:require monger.conversion))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue