beam-core-0.6.0.0: Type-safe, feature-complete SQL query and manipulation interface for Haskell

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Backend.SQL.SQL2003

Description

Modular finally tagless extension of SQL99 and SQL92 syntaxes for various SQL2003 core and optional features.

Synopsis

Documentation

class IsSql92FromSyntax from => IsSql2003FromSyntax from where Source #

Minimal complete definition

fromTableSample

Associated Types

type Sql2003FromSampleMethodSyntax from :: * Source #

class IsSql92OrderingSyntax ord => IsSql2003OrderingElementaryOLAPOperationsSyntax ord where Source #

Optional SQL2003 "Elementary OLAP operations" T611 support

Minimal complete definition

nullsFirstOrdering, nullsLastOrdering

class IsSql2003ExpressionSyntax expr => IsSql2003ExpressionElementaryOLAPOperationsSyntax expr where Source #

Optional SQL2003 "Elementary OLAP operations" T611 support

Minimal complete definition

filterAggE, rankAggE

Methods

filterAggE :: expr -> expr -> expr Source #

rankAggE :: expr Source #

class IsSql99DataTypeSyntax dataType => IsSql2003BinaryAndVarBinaryDataTypeSyntax dataType where Source #

Optional SQL2003 "BINARY AND VARBINARY data type" T021 support

Minimal complete definition

binaryType, varBinaryType

Methods

binaryType :: Maybe Word -> dataType Source #

varBinaryType :: Maybe Word -> dataType Source #

class IsSql2003WindowFrameBoundSyntax bound where Source #

Minimal complete definition

unboundedSyntax, nrowsBoundSyntax

Methods

unboundedSyntax :: bound Source #

nrowsBoundSyntax :: Int -> bound Source #

class IsSql99ExpressionSyntax expr => IsSql2003EnhancedNumericFunctionsExpressionSyntax expr where Source #

Optional SQL2003 "Enhanced numeric functions" T621 support

Minimal complete definition

lnE, expE, sqrtE, ceilE, floorE, powerE

Methods

lnE, expE, sqrtE, ceilE, floorE :: expr -> expr Source #

powerE :: expr -> expr -> expr Source #

class IsSql99AggregationExpressionSyntax agg => IsSql2003FirstValueAndLastValueExpressionSyntax agg where Source #

Optional SQL2003 "FIRST_VALUE and LAST_VALUE function" T616 support

Minimal complete definition

firstValueE, lastValueE

Methods

firstValueE, lastValueE :: agg -> agg Source #

class IsSql99AggregationExpressionSyntax agg => IsSql2003NtileExpressionSyntax agg where Source #

Optional SQL2003 "NTILE function" T614 support

Minimal complete definition

ntileE

Methods

ntileE :: agg -> agg Source #

class IsSql99AggregationExpressionSyntax agg => IsSql2003NthValueExpressionSyntax agg where Source #

Optional SQL2003 "NTH_VALUE function" T618 support

Minimal complete definition

nthValueE

Methods

nthValueE :: agg -> agg -> agg Source #

class IsSql99AggregationExpressionSyntax agg => IsSql2003LeadAndLagExpressionSyntax agg where Source #

Optional SQL2003 "LEAD and LAG function" T615 support

Minimal complete definition

leadE, lagE

Methods

leadE, lagE :: agg -> Maybe agg -> Maybe agg -> agg Source #

class IsSql99DataTypeSyntax dataType => IsSql2008BigIntDataTypeSyntax dataType where Source #

Optional SQL2008 "BIGINT data type" T071 support

Minimal complete definition

bigIntType

Methods

bigIntType :: dataType Source #