snaplet-mongodb-minimalistic-0.0.1: Minimalistic MongoDB Snaplet.

Snap.Snaplet.MongoDB.Functions

Documentation

eitherWithDB' :: HasMongoDB' app m => AccessMode -> Action IO a -> m (Either Failure a)Source

eitherWithDB :: HasMongoDB' app m => Action IO a -> m (Either Failure a)Source

maybeWithDB :: HasMongoDB' app m => Action IO a -> m (Maybe a)Source

maybeWithDB' :: HasMongoDB' app m => AccessMode -> Action IO a -> m (Maybe a)Source

unsafeWithDB :: HasMongoDB' app m => Action IO a -> m aSource

unsafeWithDB' :: HasMongoDB' app m => AccessMode -> Action IO a -> m aSource