orville-postgresql-1.0.0.0: A Haskell library for PostgreSQL
CopyrightFlipstone Technology Partners 2023
LicenseMIT
StabilityStable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Orville.PostgreSQL.Expr.Select

Description

Since: 1.0.0.0

Synopsis

Documentation

data SelectClause Source #

Type to represent the SELECT part of a SQL query. E.G.

SELECT

or

SELECT DISTINCT

SelectClause provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

selectClause :: SelectExpr -> SelectClause Source #

Constructs a SelectClause using the given SelectExpr, which may indicate that this is a DISTINCT select.

Since: 1.0.0.0

data SelectExpr Source #

Type to represent any expression modifying the SELECT part of a SQL. E.G.

DISTINCT

SelectExpr provides a SqlExpression instance. See unsafeSqlExpression for how to construct a value with your own custom SQL.

Since: 1.0.0.0

Instances

Instances details
SqlExpression SelectExpr Source # 
Instance details

Defined in Orville.PostgreSQL.Expr.Select

selectExpr :: Maybe Distinct -> SelectExpr Source #

Constructs a SelectExpr that may or may not make the SELECT distinct, depending on whether 'Just Distinct' is passed or not.

Since: 1.0.0.0

data Distinct Source #

A simple value type used to indicate that a SELECT should be distinct when constructing a SelectExpr.

Since: 1.0.0.0

Constructors

Distinct