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
|
(ns monger.db
|
||||||
(:refer-clojure :exclude [find remove count drop distinct empty?])
|
(:refer-clojure :exclude [find remove count drop distinct empty?])
|
||||||
(:import [com.mongodb Mongo DB DBCollection])
|
(: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"
|
"Adds a new user for this db"
|
||||||
([^String username, ^chars password]
|
([^String username, ^chars password]
|
||||||
(.addUser ^DB monger.core/*mongodb-database* username 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)))
|
(.addUser ^DB database username password)))
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -30,7 +31,6 @@
|
||||||
([^DB database]
|
([^DB database]
|
||||||
(.dropDatabase ^DB database)))
|
(.dropDatabase ^DB database)))
|
||||||
|
|
||||||
|
|
||||||
(defn get-collection-names
|
(defn get-collection-names
|
||||||
"Returns a set containing the names of all collections in this database."
|
"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.
|
;; You must not remove this notice, or any other, from this software.
|
||||||
|
|
||||||
(ns monger.result
|
(ns monger.result
|
||||||
(:import [com.mongodb DBObject WriteResult MapReduceOutput]
|
(:import [com.mongodb DBObject WriteResult MapReduceOutput])
|
||||||
[clojure.lang IPersistentMap])
|
(:require monger.conversion))
|
||||||
(:require [monger conversion]))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue