prolude-0.0.0.8: ITProTV's custom prelude
Safe HaskellNone
LanguageHaskell2010

Prolude.MongoDB

Synopsis

Documentation

genObjectId :: IO ObjectId #

Create a fresh ObjectId

fval :: (forall a. Val a => a -> b) -> Value -> b #

Apply generic function to typed value

(=:) :: Val v => Label -> v -> Field infix 0 #

Field with given label and typed value

data ObjectId #

A BSON ObjectID is a 12-byte value consisting of a 4-byte timestamp (seconds since epoch), a 3-byte machine id, a 2-byte process id, and a 3-byte counter. Note that the timestamp and counter fields must be stored big endian unlike the rest of BSON. This is because they are compared byte-by-byte and we want to ensure a mostly increasing order.

Instances

Instances details
Eq ObjectId 
Instance details

Defined in Data.Bson

Ord ObjectId 
Instance details

Defined in Data.Bson

Read ObjectId 
Instance details

Defined in Data.Bson

Show ObjectId 
Instance details

Defined in Data.Bson

Val ObjectId 
Instance details

Defined in Data.Bson

data UpdateOption #

Constructors

MultiUpdate

If set, the database will update all matching objects in the collection. Otherwise only updates first matching doc

Instances

Instances details
Eq UpdateOption 
Instance details

Defined in Database.MongoDB.Internal.Protocol

Show UpdateOption 
Instance details

Defined in Database.MongoDB.Internal.Protocol