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

Orville.PostgreSQL.Expr.Delete

Description

Provides a type representing SQL DELETE and construction of that type.

Since: 1.0.0.0

Synopsis

Documentation

data DeleteExpr Source #

Type to represent a SQL delete statement. E.G.

DELETE FROM foo WHERE id < 10

DeleteExpr 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 DeleteExpr Source #

Since: 1.0.0.0

Instance details

Defined in Orville.PostgreSQL.Expr.Delete

deleteExpr :: Qualified TableName -> Maybe WhereClause -> Maybe ReturningExpr -> DeleteExpr Source #

Construct a SQL DELETE from a table, optionally limiting with a WhereClause and optionally returning a ReturningExpr.

Since: 1.0.0.0