Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hxt-charproperties Data.Set.CharSet No documentation available.
-
mongoDB Database.MongoDB.Connection Maintains a connection (created on demand) to each server in the named replica set
-
mongoDB Database.MongoDB.Connection No documentation available.
closeReplicaSet :: ReplicaSet -> IO ()mongoDB Database.MongoDB.Connection Close all connections to replica set
openReplicaSet :: (ReplicaSetName, [Host]) -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open connections (on demand) to servers in replica set. Supplied hosts is seed list. At least one of them must be a live member of the named replica set, otherwise fail. The value of globalConnectTimeout at the time of this call is the timeout used for future member connect attempts. To use your own value call openReplicaSet' instead.
openReplicaSet' :: Secs -> (ReplicaSetName, [Host]) -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open connections (on demand) to servers in replica set. Supplied hosts is seed list. At least one of them must be a live member of the named replica set, otherwise fail. Supplied seconds timeout is used for connect attempts to members.
openReplicaSetSRV :: HostName -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open non-secure connections (on demand) to servers in a replica set. The seedlist and replica set name is fetched from the SRV and TXT DNS records for the given hostname. The value of globalConnectTimeout at the time of this call is the timeout used for future member connect attempts. To use your own value call openReplicaSetSRV'' instead.
openReplicaSetSRV' :: HostName -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open secure connections (on demand) to servers in a replica set. The seedlist and replica set name is fetched from the SRV and TXT DNS records for the given hostname. The value of globalConnectTimeout at the time of this call is the timeout used for future member connect attempts. To use your own value call openReplicaSetSRV''' instead. The preferred connection method for cloud MongoDB providers. A typical connecting sequence is shown in the example below.
Example
do pipe <- openReplicatSetSRV' "cluster#.xxxxx.yyyyy.zzz" is_auth <- access pipe master "admin" $ auth user_name password unless is_auth (throwIO $ userError "Authentication failed!")
openReplicaSetSRV'' :: Secs -> HostName -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open non-secure connections (on demand) to servers in a replica set. The seedlist and replica set name is fetched from the SRV and TXT DNS records for the given hostname. Supplied seconds timeout is used for connect attempts to members.
openReplicaSetSRV''' :: Secs -> HostName -> IO ReplicaSetmongoDB Database.MongoDB.Connection Open secure connections (on demand) to servers in a replica set. The seedlist and replica set name is fetched from the SRV and TXT DNS records for the given hostname. Supplied seconds timeout is used for connect attempts to members.