disconnect

This commit is contained in:
Scott R. Parish 2010-01-18 14:19:25 -06:00
parent 6a3dd6f7c4
commit ee8cd25138

View file

@ -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.