| Copyright | Flipstone Technology Partners 2023 |
|---|---|
| License | MIT |
| Stability | Stable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Orville.PostgreSQL.Expr.Select
Description
Since: 1.0.0.0
Synopsis
- data SelectClause
- selectClause :: SelectExpr -> SelectClause
- data SelectExpr
- selectExpr :: Maybe Distinct -> SelectExpr
- data Distinct = Distinct
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
Instances
| SqlExpression SelectClause Source # | |
Defined in Orville.PostgreSQL.Expr.Select Methods toRawSql :: SelectClause -> RawSql Source # | |
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
| SqlExpression SelectExpr Source # | |
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
A simple value type used to indicate that a SELECT should be distinct when
constructing a SelectExpr.
Since: 1.0.0.0
Constructors
| Distinct |