Module Documentation
May 2, 2015 ยท View on GitHub
Module Database.Mongo.ConnectionInfo
ConnectionInfo
type ConnectionInfo = { password :: Maybe Password, user :: Maybe User, db :: Maybe Db, port :: Maybe Port, host :: Host }
The type for Mongo connection options
defaultOptions
defaultOptions :: ConnectionInfo
Standard default options for connecting to mongodb.
Uri
type Uri = String
Type alias for URI connections to aid readability of types.
Host
type Host = String
Port
type Port = Number
Db
type Db = String
User
type User = String
Password
type Password = String
dialUri
dialUri :: ConnectionInfo -> Uri
showHost
showHost :: Host -> String
showPort
showPort :: Port -> String
showDb
showDb :: Db -> String
showUser
showUser :: User -> String
showPassword
showPassword :: Password -> String