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
|
||||||
Connection,
|
Connection,
|
||||||
connect, connectOnPort, conClose,
|
connect, connectOnPort, conClose, disconnect,
|
||||||
-- * Basic database operations
|
-- * Basic database operations
|
||||||
Collection, FieldSelector, NumToSkip, NumToReturn, Selector,
|
Collection, FieldSelector, NumToSkip, NumToReturn, Selector,
|
||||||
QueryOpt(..),
|
QueryOpt(..),
|
||||||
|
@ -84,6 +84,10 @@ connectOnPort host port = do
|
||||||
conClose :: Connection -> IO ()
|
conClose :: Connection -> IO ()
|
||||||
conClose = hClose . cHandle
|
conClose = hClose . cHandle
|
||||||
|
|
||||||
|
-- | Alias for 'conClose'
|
||||||
|
disconnect :: Connection -> IO ()
|
||||||
|
disconnect = conClose
|
||||||
|
|
||||||
-- | An Itertaor over the results of a query. Use 'nextDoc' to get each
|
-- | An Itertaor over the results of a query. Use 'nextDoc' to get each
|
||||||
-- successive result document, or 'allDocs' or 'allDocs'' to get lazy or
|
-- successive result document, or 'allDocs' or 'allDocs'' to get lazy or
|
||||||
-- strict lists of results.
|
-- strict lists of results.
|
||||||
|
|
Loading…
Reference in a new issue