hails-0.11.0.0: Multi-app web platform framework

Safe HaskellUnsafe

Hails.Database.Query.TCB

Contents

Description

This module exports the trusted types and functions used by Hails.Database.Query when performing database queries.

Synopsis

Labeled cursor

data Cursor Source

A labeled cursor. The cursor is labeled with the join of the database and collection it reads from. The collection policies are "carried" along since they are applied on-demand.

Constructors

CursorTCB 

Fields

curLabel :: DCLabel

Cursor label

curInternal :: Cursor

Internal MongoDB cursor

curProject :: [FieldName]

Projector from query. Used to remove fields after performing query.

curCollection :: Collection

Collection cursor is reading from