prolude-0.0.0.27: ACI Learning's custom prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prolude.MongoDB

Synopsis

MongoDB re-exports

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
Read ObjectId 
Instance details

Defined in Data.Bson

Show ObjectId 
Instance details

Defined in Data.Bson

Val ObjectId 
Instance details

Defined in Data.Bson

Eq ObjectId 
Instance details

Defined in Data.Bson

Ord 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
Show UpdateOption 
Instance details

Defined in Database.MongoDB.Internal.Protocol

Eq UpdateOption 
Instance details

Defined in Database.MongoDB.Internal.Protocol

Type aliases

We created type aliases for specific Mongo types. These include: Action, Collection, Database, Document, Field, Label, Query, Selector, Val, and Value.

Pattern synonyms

We created pattern synonyms for the MongoValue constructors.

Function aliases

We created aliases for specific Mongo functions. These include: failed, insert_, nModified, select, and updateMany.

Operators aliases

We created aliases for specific Mongo operators. These include: (>=:), (>:), (<=:), (<:), (<-:), (!<-:), and (!=:).