beam-postgres-0.3.2.0: Connection layer between beam and postgres

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Postgres.Syntax

Description

Data types for Postgres syntax. Access is given mainly for extension modules. The types and definitions here are likely to change.

Synopsis

Documentation

data PgSyntaxF f where Source #

Instances

Functor PgSyntaxF Source # 

Methods

fmap :: (a -> b) -> PgSyntaxF a -> PgSyntaxF b #

(<$) :: a -> PgSyntaxF b -> PgSyntaxF a #

Eq1 PgSyntaxF Source # 

Methods

liftEq :: (a -> b -> Bool) -> PgSyntaxF a -> PgSyntaxF b -> Bool #

Eq f => Eq (PgSyntaxF f) Source # 

Methods

(==) :: PgSyntaxF f -> PgSyntaxF f -> Bool #

(/=) :: PgSyntaxF f -> PgSyntaxF f -> Bool #

newtype PgSyntax Source #

A piece of Postgres SQL syntax, which may contain embedded escaped byte and text sequences. PgSyntax composes monoidally, and may be created with emit, emitBuilder, escapeString, escapBytea, and escapeIdentifier.

Constructors

PgSyntax 

Fields

data PgCommandSyntax Source #

Representation of an arbitrary Postgres command. This is the combination of the command syntax (repesented by PgSyntax), as well as the type of command (represented by PgCommandType). The command type is necessary for us to know how to retrieve results from the database.

Instances

IsSql92Syntax PgCommandSyntax Source # 
IsSql92DdlCommandSyntax PgCommandSyntax Source # 
MonadBeam PgCommandSyntax Postgres Connection Pg # 
type Sql92DeleteSyntax PgCommandSyntax Source # 
type Sql92UpdateSyntax PgCommandSyntax Source # 
type Sql92InsertSyntax PgCommandSyntax Source # 
type Sql92SelectSyntax PgCommandSyntax Source # 
type Sql92DdlCommandDropTableSyntax PgCommandSyntax Source # 
type Sql92DdlCommandAlterTableSyntax PgCommandSyntax Source # 
type Sql92DdlCommandCreateTableSyntax PgCommandSyntax Source # 

newtype PgExpressionSyntax Source #

Instances

Eq PgExpressionSyntax Source # 
IsCustomSqlSyntax PgExpressionSyntax Source # 
IsSql2003ExpressionSyntax PgExpressionSyntax Source # 
IsSql2003ExpressionAdvancedOLAPOperationsSyntax PgExpressionSyntax Source # 
IsSql2003ExpressionElementaryOLAPOperationsSyntax PgExpressionSyntax Source # 
IsSql2003EnhancedNumericFunctionsExpressionSyntax PgExpressionSyntax Source # 
IsSql2003EnhancedNumericFunctionsAggregationExpressionSyntax PgExpressionSyntax Source # 

Methods

stddevPopE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax #

stddevSampE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax #

varPopE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax #

varSampE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax #

covarPopE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

covarSampE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

corrE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrSlopeE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrInterceptE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrCountE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrRSquaredE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrAvgXE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrAvgYE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrSXXE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrSXYE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

regrSYYE :: Maybe (Sql92AggregationSetQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

IsSql2003NtileExpressionSyntax PgExpressionSyntax Source # 
IsSql2003LeadAndLagExpressionSyntax PgExpressionSyntax Source # 
IsSql2003FirstValueAndLastValueExpressionSyntax PgExpressionSyntax Source # 
IsSql2003NthValueExpressionSyntax PgExpressionSyntax Source # 
IsSql99ExpressionSyntax PgExpressionSyntax Source # 
IsSql99ConcatExpressionSyntax PgExpressionSyntax Source # 
IsSql99AggregationExpressionSyntax PgExpressionSyntax Source # 
IsSql92ExpressionSyntax PgExpressionSyntax Source # 

Methods

valueE :: Sql92ExpressionValueSyntax PgExpressionSyntax -> PgExpressionSyntax #

rowE :: [PgExpressionSyntax] -> PgExpressionSyntax #

quantifierListE :: [PgExpressionSyntax] -> PgExpressionSyntax #

coalesceE :: [PgExpressionSyntax] -> PgExpressionSyntax #

caseE :: [(PgExpressionSyntax, PgExpressionSyntax)] -> PgExpressionSyntax -> PgExpressionSyntax #

fieldE :: Sql92ExpressionFieldNameSyntax PgExpressionSyntax -> PgExpressionSyntax #

betweenE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

andE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

orE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

addE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

subE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

mulE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

divE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

likeE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

modE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

overlapsE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

nullIfE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

positionE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

eqE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

neqE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

ltE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

gtE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

leE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

geE :: Maybe (Sql92ExpressionQuantifierSyntax PgExpressionSyntax) -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

eqMaybeE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

neqMaybeE :: PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

castE :: PgExpressionSyntax -> Sql92ExpressionCastTargetSyntax PgExpressionSyntax -> PgExpressionSyntax #

notE :: PgExpressionSyntax -> PgExpressionSyntax #

negateE :: PgExpressionSyntax -> PgExpressionSyntax #

isNullE :: PgExpressionSyntax -> PgExpressionSyntax #

isNotNullE :: PgExpressionSyntax -> PgExpressionSyntax #

isTrueE :: PgExpressionSyntax -> PgExpressionSyntax #

isNotTrueE :: PgExpressionSyntax -> PgExpressionSyntax #

isFalseE :: PgExpressionSyntax -> PgExpressionSyntax #

isNotFalseE :: PgExpressionSyntax -> PgExpressionSyntax #

isUnknownE :: PgExpressionSyntax -> PgExpressionSyntax #

isNotUnknownE :: PgExpressionSyntax -> PgExpressionSyntax #

charLengthE :: PgExpressionSyntax -> PgExpressionSyntax #

octetLengthE :: PgExpressionSyntax -> PgExpressionSyntax #

bitLengthE :: PgExpressionSyntax -> PgExpressionSyntax #

lowerE :: PgExpressionSyntax -> PgExpressionSyntax #

upperE :: PgExpressionSyntax -> PgExpressionSyntax #

trimE :: PgExpressionSyntax -> PgExpressionSyntax #

absE :: PgExpressionSyntax -> PgExpressionSyntax #

extractE :: Sql92ExpressionExtractFieldSyntax PgExpressionSyntax -> PgExpressionSyntax -> PgExpressionSyntax #

existsE :: Sql92ExpressionSelectSyntax PgExpressionSyntax -> PgExpressionSyntax #

uniqueE :: Sql92ExpressionSelectSyntax PgExpressionSyntax -> PgExpressionSyntax #

subqueryE :: Sql92ExpressionSelectSyntax PgExpressionSyntax -> PgExpressionSyntax #

currentTimestampE :: PgExpressionSyntax #

defaultE :: PgExpressionSyntax #

inE :: PgExpressionSyntax -> [PgExpressionSyntax] -> PgExpressionSyntax #

IsSql92AggregationExpressionSyntax PgExpressionSyntax Source # 
HasSqlEqualityCheck PgExpressionSyntax Bool Source # 
HasSqlEqualityCheck PgExpressionSyntax Double Source # 
HasSqlEqualityCheck PgExpressionSyntax Float Source # 
HasSqlEqualityCheck PgExpressionSyntax Int Source # 
HasSqlEqualityCheck PgExpressionSyntax Int8 Source # 
HasSqlEqualityCheck PgExpressionSyntax Int16 Source # 
HasSqlEqualityCheck PgExpressionSyntax Int32 Source # 
HasSqlEqualityCheck PgExpressionSyntax Int64 Source # 
HasSqlEqualityCheck PgExpressionSyntax Integer Source # 
HasSqlEqualityCheck PgExpressionSyntax Word Source # 
HasSqlEqualityCheck PgExpressionSyntax Word8 Source # 
HasSqlEqualityCheck PgExpressionSyntax Word16 Source # 
HasSqlEqualityCheck PgExpressionSyntax Word32 Source # 
HasSqlEqualityCheck PgExpressionSyntax Word64 Source # 
HasSqlEqualityCheck PgExpressionSyntax ByteString Source # 
HasSqlEqualityCheck PgExpressionSyntax ByteString Source # 
HasSqlEqualityCheck PgExpressionSyntax Scientific Source # 
HasSqlEqualityCheck PgExpressionSyntax Text Source # 
HasSqlEqualityCheck PgExpressionSyntax UTCTime Source # 
HasSqlEqualityCheck PgExpressionSyntax Value Source # 
HasSqlEqualityCheck PgExpressionSyntax Text Source # 
HasSqlEqualityCheck PgExpressionSyntax Oid Source # 
HasSqlEqualityCheck PgExpressionSyntax HStoreList Source # 
HasSqlEqualityCheck PgExpressionSyntax HStoreMap Source # 
HasSqlEqualityCheck PgExpressionSyntax LocalTimestamp Source # 
HasSqlEqualityCheck PgExpressionSyntax UTCTimestamp Source # 
HasSqlEqualityCheck PgExpressionSyntax ZonedTimestamp Source # 
HasSqlEqualityCheck PgExpressionSyntax Date Source # 
HasSqlEqualityCheck PgExpressionSyntax ZonedTime Source # 
HasSqlEqualityCheck PgExpressionSyntax LocalTime Source # 
HasSqlEqualityCheck PgExpressionSyntax TimeOfDay Source # 
HasSqlEqualityCheck PgExpressionSyntax NominalDiffTime Source # 
HasSqlEqualityCheck PgExpressionSyntax Day Source # 
HasSqlEqualityCheck PgExpressionSyntax UUID Source # 
HasSqlEqualityCheck PgExpressionSyntax PgMoney # 
HasSqlEqualityCheck PgExpressionSyntax TsQuery # 
HasSqlEqualityCheck PgExpressionSyntax TsVectorConfig # 
HasSqlEqualityCheck PgExpressionSyntax TsVector # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Bool Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Double Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Float Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Int Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Int8 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Int16 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Int32 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Int64 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Integer Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Word Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Word8 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Word16 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Word32 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Word64 Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax ByteString Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax ByteString Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Scientific Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Text Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax UTCTime Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Value Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Text Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Oid Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax HStoreList Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax HStoreMap Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax LocalTimestamp Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax UTCTimestamp Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax ZonedTimestamp Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Date Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax ZonedTime Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax LocalTime Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax TimeOfDay Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax NominalDiffTime Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax Day Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax UUID Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax PgMoney # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax TsQuery # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax TsVectorConfig # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax TsVector # 
HasSqlEqualityCheck PgExpressionSyntax [Char] Source # 
HasSqlEqualityCheck PgExpressionSyntax (CI Text) Source # 
HasSqlEqualityCheck PgExpressionSyntax (CI Text) Source # 
HasSqlEqualityCheck PgExpressionSyntax (Vector a) Source # 
HasSqlEqualityCheck PgExpressionSyntax (PgJSONB a) # 
HasSqlEqualityCheck PgExpressionSyntax (PgJSON a) # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax [Char] Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax (CI Text) Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax (CI Text) Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax (Vector a) Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax (PgJSONB a) # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax (PgJSON a) # 
HasSqlEqualityCheck PgExpressionSyntax a => HasSqlEqualityCheck PgExpressionSyntax (Tagged k t a) Source # 
HasSqlQuantifiedEqualityCheck PgExpressionSyntax a => HasSqlQuantifiedEqualityCheck PgExpressionSyntax (Tagged k t a) Source # 
IsString (CustomSqlSyntax PgExpressionSyntax) Source # 
Semigroup (CustomSqlSyntax PgExpressionSyntax) Source # 
Monoid (CustomSqlSyntax PgExpressionSyntax) Source # 
IsSqlExpressionSyntaxStringType * * PgExpressionSyntax String Source # 
IsSqlExpressionSyntaxStringType * * PgExpressionSyntax Text Source # 
data CustomSqlSyntax PgExpressionSyntax Source # 
type Sql2003ExpressionWindowFrameSyntax PgExpressionSyntax Source # 
type Sql92ExpressionExtractFieldSyntax PgExpressionSyntax Source # 
type Sql92ExpressionCastTargetSyntax PgExpressionSyntax Source # 
type Sql92ExpressionFieldNameSyntax PgExpressionSyntax Source # 
type Sql92ExpressionSelectSyntax PgExpressionSyntax Source # 
type Sql92ExpressionValueSyntax PgExpressionSyntax Source # 
type Sql92ExpressionQuantifierSyntax PgExpressionSyntax Source # 
type Sql92AggregationSetQuantifierSyntax PgExpressionSyntax Source # 

newtype PgValueSyntax Source #

Constructors

PgValueSyntax 

Instances

HasSqlValueSyntax PgValueSyntax Bool Source # 
HasSqlValueSyntax PgValueSyntax Double Source # 
HasSqlValueSyntax PgValueSyntax Float Source # 
HasSqlValueSyntax PgValueSyntax Int Source # 
HasSqlValueSyntax PgValueSyntax Int8 Source # 
HasSqlValueSyntax PgValueSyntax Int16 Source # 
HasSqlValueSyntax PgValueSyntax Int32 Source # 
HasSqlValueSyntax PgValueSyntax Int64 Source # 
HasSqlValueSyntax PgValueSyntax Integer Source # 
HasSqlValueSyntax PgValueSyntax Word Source # 
HasSqlValueSyntax PgValueSyntax Word8 Source # 
HasSqlValueSyntax PgValueSyntax Word16 Source # 
HasSqlValueSyntax PgValueSyntax Word32 Source # 
HasSqlValueSyntax PgValueSyntax Word64 Source # 
HasSqlValueSyntax PgValueSyntax ByteString Source # 
HasSqlValueSyntax PgValueSyntax ByteString Source # 
HasSqlValueSyntax PgValueSyntax Scientific Source # 
HasSqlValueSyntax PgValueSyntax Text Source # 
HasSqlValueSyntax PgValueSyntax UTCTime Source # 
HasSqlValueSyntax PgValueSyntax Value Source # 
HasSqlValueSyntax PgValueSyntax Text Source # 
HasSqlValueSyntax PgValueSyntax SqlNull Source # 
HasSqlValueSyntax PgValueSyntax Oid Source # 
HasSqlValueSyntax PgValueSyntax HStoreBuilder Source # 
HasSqlValueSyntax PgValueSyntax HStoreList Source # 
HasSqlValueSyntax PgValueSyntax HStoreMap Source # 
HasSqlValueSyntax PgValueSyntax LocalTimestamp Source # 
HasSqlValueSyntax PgValueSyntax UTCTimestamp Source # 
HasSqlValueSyntax PgValueSyntax ZonedTimestamp Source # 
HasSqlValueSyntax PgValueSyntax Date Source # 
HasSqlValueSyntax PgValueSyntax ZonedTime Source # 
HasSqlValueSyntax PgValueSyntax LocalTime Source # 
HasSqlValueSyntax PgValueSyntax TimeOfDay Source # 
HasSqlValueSyntax PgValueSyntax NominalDiffTime Source # 
HasSqlValueSyntax PgValueSyntax Day Source # 
HasSqlValueSyntax PgValueSyntax UUID Source # 
HasSqlValueSyntax PgValueSyntax PgMoney # 
HasSqlValueSyntax PgValueSyntax [Char] Source # 
HasSqlValueSyntax PgValueSyntax x => HasSqlValueSyntax PgValueSyntax (Maybe x) Source # 
HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSONB a) # 
ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSON a) # 

newtype PgColumnSchemaSyntax Source #

Instances

Eq PgColumnSchemaSyntax Source # 
Show PgColumnSchemaSyntax Source # 
Hashable PgColumnSchemaSyntax Source # 
Sql92DisplaySyntax PgColumnSchemaSyntax Source # 
IsSql92ColumnSchemaSyntax PgColumnSchemaSyntax Source # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax ByteString Source # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax LocalTime Source # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax UUID Source # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax PgMoney # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax TsQuery # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax TsVector # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax (SqlSerial Int) Source # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax (PgJSONB a) # 
HasDefaultSqlDataTypeConstraints PgColumnSchemaSyntax (PgJSON a) # 
type Sql92ColumnSchemaColumnConstraintDefinitionSyntax PgColumnSchemaSyntax Source # 
type Sql92ColumnSchemaExpressionSyntax PgColumnSchemaSyntax Source # 
type Sql92ColumnSchemaColumnTypeSyntax PgColumnSchemaSyntax Source # 

data PgDataTypeSyntax Source #

Instances

Eq PgDataTypeSyntax Source # 
Show PgDataTypeSyntax Source # 
Hashable PgDataTypeSyntax Source # 
IsSql2008BigIntDataTypeSyntax PgDataTypeSyntax Source # 
IsSql99DataTypeSyntax PgDataTypeSyntax Source # 
IsSql92DataTypeSyntax PgDataTypeSyntax Source # 
Sql92DisplaySyntax PgDataTypeSyntax Source # 
Sql92SerializableDataTypeSyntax PgDataTypeSyntax Source # 
HasDefaultSqlDataType PgDataTypeSyntax ByteString Source # 
HasDefaultSqlDataType PgDataTypeSyntax LocalTime Source # 
HasDefaultSqlDataType PgDataTypeSyntax UUID Source # 
HasDefaultSqlDataType PgDataTypeSyntax PgMoney # 
HasDefaultSqlDataType PgDataTypeSyntax TsQuery # 
HasDefaultSqlDataType PgDataTypeSyntax TsVector # 
HasDefaultSqlDataType PgDataTypeSyntax (SqlSerial Int) Source # 
HasDefaultSqlDataType PgDataTypeSyntax (PgJSONB a) # 
HasDefaultSqlDataType PgDataTypeSyntax (PgJSON a) # 

data PgColumnConstraintDefinitionSyntax Source #

Instances

Eq PgColumnConstraintDefinitionSyntax Source # 
Show PgColumnConstraintDefinitionSyntax Source # 
Hashable PgColumnConstraintDefinitionSyntax Source # 
Sql92DisplaySyntax PgColumnConstraintDefinitionSyntax Source # 
IsSql92ColumnConstraintDefinitionSyntax PgColumnConstraintDefinitionSyntax Source # 
Sql92SerializableConstraintDefinitionSyntax PgColumnConstraintDefinitionSyntax Source # 
type Sql92ColumnConstraintDefinitionAttributesSyntax PgColumnConstraintDefinitionSyntax Source # 
type Sql92ColumnConstraintDefinitionConstraintSyntax PgColumnConstraintDefinitionSyntax Source # 

data PgColumnConstraintSyntax Source #

data PgSelectLockingStrength Source #

Specifies the level of lock that will be taken against a row. See the manual section for more information.

Instances

Eq PgSelectLockingStrength Source # 
Show PgSelectLockingStrength Source # 
Generic PgSelectLockingStrength Source # 
type Rep PgSelectLockingStrength Source # 
type Rep PgSelectLockingStrength = D1 * (MetaData "PgSelectLockingStrength" "Database.Beam.Postgres.Syntax" "beam-postgres-0.3.2.0-36iAb593A4W69abKidpZQx" False) ((:+:) * ((:+:) * (C1 * (MetaCons "PgSelectLockingStrengthUpdate" PrefixI False) (U1 *)) (C1 * (MetaCons "PgSelectLockingStrengthNoKeyUpdate" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "PgSelectLockingStrengthShare" PrefixI False) (U1 *)) (C1 * (MetaCons "PgSelectLockingStrengthKeyShare" PrefixI False) (U1 *))))

data PgSelectLockingOptions Source #

Specifies how we should handle lock conflicts.

See the manual section for more information

Constructors

PgSelectLockingOptionsNoWait

NOWAIT. Report an error rather than waiting for the lock

PgSelectLockingOptionsSkipLocked

SKIP LOCKED. Rather than wait for a lock, skip the row instead

Instances

pgSelectStmt Source #

Arguments

:: PgSelectTableSyntax 
-> [PgOrderingSyntax] 
-> Maybe Integer

LIMIT

-> Maybe Integer

OFFSET

-> Maybe PgSelectLockingClauseSyntax 
-> PgSelectSyntax 

pgTsVectorTypeInfo :: TypeInfo Source #

Postgres TypeInfo for tsvector TODO Is the Oid stable from postgres instance to postgres instance?

pgTestSyntax :: PgSyntax -> [PgSyntaxPrim] Source #