disconnect
This commit is contained in:
parent
6a3dd6f7c4
commit
ee8cd25138
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,7 @@ module Database.MongoDB
|
|||
(
|
||||
-- * Connection
|
||||
Connection,
|
||||
connect, connectOnPort, conClose,
|
||||
connect, connectOnPort, conClose, disconnect,
|
||||
-- * Basic database operations
|
||||
Collection, FieldSelector, NumToSkip, NumToReturn, Selector,
|
||||
QueryOpt(..),
|
||||
|
@ -84,6 +84,10 @@ connectOnPort host port = do
|
|||
conClose :: Connection -> IO ()
|
||||
conClose = hClose . cHandle
|
||||
|
||||
-- | Alias for 'conClose'
|
||||
disconnect :: Connection -> IO ()
|
||||
disconnect = conClose
|
||||
|
||||
-- | An Itertaor over the results of a query. Use 'nextDoc' to get each
|
||||
-- successive result document, or 'allDocs' or 'allDocs'' to get lazy or
|
||||
-- strict lists of results.
|
||||
|
|
Loading…
Reference in a new issue