opaleye-0.6.7004.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Select

Description

A Select represents an SQL SELECT statment. To run a Select use the functions in Opaleye.RunSelect. To create a Select you probably want to start by querying one of your Tables using selectTable. SelectArr is a parametrised version of Select, i.e. it can be passed arguments.

Synopsis

Documentation

type Select = SelectArr () Source #

A SELECT, i.e. an SQL query which produces a collection of rows.

Select a is analogous to a Haskell value [a].

type SelectArr = QueryArr Source #

A parametrised Select. A SelectArr a b accepts an argument of type a.

SelectArr a b is analogous to a Haskell function a -> [b].