beam-postgres-0.4.0.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 # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Methods

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

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

Eq1 PgSyntaxF Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Methods

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

Eq f => Eq (PgSyntaxF f) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

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 # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql92DdlCommandSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92DeleteSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92UpdateSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92InsertSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92SelectSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92DdlCommandDropTableSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92DdlCommandAlterTableSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92DdlCommandCreateTableSyntax PgCommandSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

newtype PgSelectSyntax Source #

IsSql92SelectSyntax for Postgres

Constructors

PgSelectSyntax 

newtype PgExpressionSyntax Source #

Instances
Eq PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsCustomSqlSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

data CustomSqlSyntax PgExpressionSyntax :: Type #

IsSql2003ExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003ExpressionAdvancedOLAPOperationsSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003ExpressionElementaryOLAPOperationsSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003EnhancedNumericFunctionsExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003EnhancedNumericFunctionsAggregationExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

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 # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003LeadAndLagExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003FirstValueAndLastValueExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2003NthValueExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql99FunctionExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql99ExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql99ConcatExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql99AggregationExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql92ExpressionSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

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 # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsString (CustomSqlSyntax PgExpressionSyntax) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Semigroup (CustomSqlSyntax PgExpressionSyntax) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Monoid (CustomSqlSyntax PgExpressionSyntax) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

newtype CustomSqlSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql2003ExpressionWindowFrameSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionExtractFieldSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionCastTargetSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionFieldNameSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionSelectSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionValueSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ExpressionQuantifierSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92AggregationSetQuantifierSyntax PgExpressionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

newtype PgValueSyntax Source #

Constructors

PgValueSyntax 
Instances
HasSqlValueSyntax PgValueSyntax Bool Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Double Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Float Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int8 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int16 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int32 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int64 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Integer Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word8 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word16 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word32 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word64 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Scientific Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Text Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UTCTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Value Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Text Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax SqlNull Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Oid Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreBuilder Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreList Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreMap Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax LocalTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UTCTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Date Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax LocalTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax TimeOfDay Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax NominalDiffTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Day Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UUID Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax PgBox Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgLineSegment Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgLine Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgPoint Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgMoney Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax [Char] Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax x => HasSqlValueSyntax PgValueSyntax (Maybe x) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

ToField a => HasSqlValueSyntax PgValueSyntax (Vector a) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSONB a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSON a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

(HasSqlValueSyntax PgValueSyntax a, PgIsRange n) => HasSqlValueSyntax PgValueSyntax (PgRange n a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

newtype PgCreateTableSyntax Source #

Instances
IsSql92CreateTableSyntax PgCreateTableSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92CreateTableOptionsSyntax PgCreateTableSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92CreateTableTableConstraintSyntax PgCreateTableSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92CreateTableColumnSchemaSyntax PgCreateTableSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92CreateTableTableNameSyntax PgCreateTableSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

newtype PgColumnSchemaSyntax Source #

Instances
Eq PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Hashable PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Sql92DisplaySyntax PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql92ColumnSchemaSyntax PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnSchemaColumnConstraintDefinitionSyntax PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnSchemaExpressionSyntax PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnSchemaColumnTypeSyntax PgColumnSchemaSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

data PgDataTypeSyntax Source #

Instances
Eq PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Hashable PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql2008BigIntDataTypeSyntax PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql99DataTypeSyntax PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Sql92DisplaySyntax PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql92DataTypeSyntax PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasDataTypeCreatedCheck PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Methods

dataTypeHasBeenCreated :: PgDataTypeSyntax -> (forall preCondition. Typeable preCondition => [preCondition]) -> Bool #

Sql92SerializableDataTypeSyntax PgDataTypeSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

data PgColumnConstraintDefinitionSyntax Source #

Instances
Eq PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Hashable PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Sql92DisplaySyntax PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

IsSql92ColumnConstraintDefinitionSyntax PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Sql92SerializableConstraintDefinitionSyntax PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnConstraintDefinitionAttributesSyntax PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnConstraintDefinitionConstraintSyntax PgColumnConstraintDefinitionSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

data PgColumnConstraintSyntax Source #

Instances
IsSql92ColumnConstraintSyntax PgColumnConstraintSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnConstraintExpressionSyntax PgColumnConstraintSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnConstraintReferentialActionSyntax PgColumnConstraintSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Sql92ColumnConstraintMatchTypeSyntax PgColumnConstraintSyntax Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

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 # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgSelectLockingStrength Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Generic PgSelectLockingStrength Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

type Rep PgSelectLockingStrength :: Type -> Type #

type Rep PgSelectLockingStrength Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgSelectLockingStrength = D1 (MetaData "PgSelectLockingStrength" "Database.Beam.Postgres.Syntax" "beam-postgres-0.4.0.0-GWUsEUf8XCGGrNini254Hd" False) ((C1 (MetaCons "PgSelectLockingStrengthUpdate" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgSelectLockingStrengthNoKeyUpdate" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "PgSelectLockingStrengthShare" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgSelectLockingStrengthKeyShare" PrefixI False) (U1 :: Type -> Type)))

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
Eq PgSelectLockingOptions Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgSelectLockingOptions Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Generic PgSelectLockingOptions Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

type Rep PgSelectLockingOptions :: Type -> Type #

type Rep PgSelectLockingOptions Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgSelectLockingOptions = D1 (MetaData "PgSelectLockingOptions" "Database.Beam.Postgres.Syntax" "beam-postgres-0.4.0.0-GWUsEUf8XCGGrNini254Hd" False) (C1 (MetaCons "PgSelectLockingOptionsNoWait" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgSelectLockingOptionsSkipLocked" PrefixI False) (U1 :: Type -> Type))

pgSelectStmt Source #

Arguments

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

LIMIT

-> Maybe Integer

OFFSET

-> Maybe PgSelectLockingClauseSyntax 
-> PgSelectSyntax 

data PgDataTypeDescr Source #

Instances
Eq PgDataTypeDescr Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgDataTypeDescr Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Generic PgDataTypeDescr Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

type Rep PgDataTypeDescr :: Type -> Type #

Hashable PgDataTypeDescr Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgDataTypeDescr Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgDataTypeDescr = D1 (MetaData "PgDataTypeDescr" "Database.Beam.Postgres.Syntax" "beam-postgres-0.4.0.0-GWUsEUf8XCGGrNini254Hd" False) (C1 (MetaCons "PgDataTypeDescrOid" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Oid) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int32))) :+: C1 (MetaCons "PgDataTypeDescrDomain" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data PgHasEnum Source #

Constructors

PgHasEnum Text [Text] 
Instances
Eq PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Show PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Generic PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

type Rep PgHasEnum :: Type -> Type #

Hashable PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

DatabasePredicate PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgHasEnum = D1 (MetaData "PgHasEnum" "Database.Beam.Postgres.Syntax" "beam-postgres-0.4.0.0-GWUsEUf8XCGGrNini254Hd" False) (C1 (MetaCons "PgHasEnum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))

pgTsVectorTypeInfo :: TypeInfo Source #

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

pgTestSyntax :: PgSyntax -> [PgSyntaxPrim] Source #