Make sure namespaces that use monger.gridfs/make-input-file don't have to import GridFSInputFile
This commit is contained in:
parent
ceb60fdb54
commit
d79e35790f
1 changed files with 3 additions and 3 deletions
|
|
@ -65,12 +65,12 @@
|
|||
([]
|
||||
(map converter (all-files)))
|
||||
([query]
|
||||
(map converter (all-files query)))
|
||||
(map converter (all-files (to-db-object query))))
|
||||
([^GridFS fs query]
|
||||
(map converter (all-files fs query))))
|
||||
(map converter (all-files fs (to-db-object query)))))
|
||||
|
||||
(defprotocol GridFSInputFileFactory
|
||||
(^GridFSInputFile make-input-file [input] "Makes GridFSInputFile out of the given input"))
|
||||
(^com.mongodb.gridfs.GridFSInputFile make-input-file [input] "Makes GridFSInputFile out of the given input"))
|
||||
|
||||
(extend byte-array-type
|
||||
GridFSInputFileFactory
|
||||
|
|
|
|||
Loading…
Reference in a new issue