create auth alias to be consistent with mongo JS api

This commit is contained in:
Scott R. Parish 2010-02-06 15:57:15 -06:00
parent 92f37cc946
commit 53fe82d117
2 changed files with 4 additions and 3 deletions

View file

@ -36,7 +36,7 @@ module Database.MongoDB
ColCreateOpt(..),
collectionNames, createCollection, dropCollection,
renameCollection, runCommand, validateCollection,
login, addUser,
authenticate, login, addUser,
-- * Collection
Collection, FieldSelector, FullCollection,
NumToSkip, NumToReturn, Selector,
@ -564,6 +564,9 @@ login c db user pass = do
("key", toBson digest)]
in runCommand c db request
authenticate :: Connection -> Database -> Username -> Password -> IO BsonDoc
authenticate = login
-- | create a new user in the current /Database/
addUser :: Connection -> Database -> Username -> Password -> IO BsonDoc
addUser c db user pass = do

2
TODO
View file

@ -15,7 +15,6 @@ BSON
MongoDB
-------
+ support full level 0
- database command support ??
- handle query errors
- hint, explain, $where
- database profiling: set/get profiling level, get profiling info
@ -24,7 +23,6 @@ MongoDB
* getName
* getCollection
* add_son_manipulators
* authenticate
* dereference (dbref)
* error
* eval