beam-automigrate-0.1.2.0: DB migration library for beam, targeting Postgres.

Safe HaskellNone
LanguageHaskell2010

Database.Beam.AutoMigrate.Types

Synopsis

Documentation

data Schema Source #

Instances
Eq Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: Schema -> Schema -> Bool #

(/=) :: Schema -> Schema -> Bool #

Show Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep Schema :: Type -> Type #

Methods

from :: Schema -> Rep Schema x #

to :: Rep Schema x -> Schema #

Arbitrary Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Schema.Gen

NFData Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: Schema -> () #

Diffable Schema Source #

Computes the diff between two Schemas, either failing with a DiffError or returning the list of Edits necessary to turn the first into the second.

Instance details

Defined in Database.Beam.AutoMigrate.Diff

Methods

diff :: Schema -> Schema -> Diff Source #

type Rep Schema Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep Schema = D1 (MetaData "Schema" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "Schema" PrefixI True) (S1 (MetaSel (Just "schemaTables") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Tables) :*: (S1 (MetaSel (Just "schemaEnumerations") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Enumerations) :*: S1 (MetaSel (Just "schemaSequences") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Sequences))))

newtype EnumerationName Source #

Constructors

EnumerationName 

Fields

Instances
Eq EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep EnumerationName :: Type -> Type #

NFData EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: EnumerationName -> () #

Diffable Enumerations Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

type Rep EnumerationName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep EnumerationName = D1 (MetaData "EnumerationName" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "EnumerationName" PrefixI True) (S1 (MetaSel (Just "enumName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

newtype Enumeration Source #

Constructors

Enumeration 

Fields

Instances
Eq Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep Enumeration :: Type -> Type #

NFData Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: Enumeration -> () #

Diffable Enumerations Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

type Rep Enumeration Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep Enumeration = D1 (MetaData "Enumeration" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "Enumeration" PrefixI True) (S1 (MetaSel (Just "enumValues") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))

newtype SequenceName Source #

Constructors

SequenceName 

Fields

Instances
Eq SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep SequenceName :: Type -> Type #

NFData SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: SequenceName -> () #

Diffable Sequences Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

type Rep SequenceName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep SequenceName = D1 (MetaData "SequenceName" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "SequenceName" PrefixI True) (S1 (MetaSel (Just "seqName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Sequence Source #

Constructors

Sequence 
Instances
Eq Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep Sequence :: Type -> Type #

Methods

from :: Sequence -> Rep Sequence x #

to :: Rep Sequence x -> Sequence #

NFData Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: Sequence -> () #

Diffable Sequences Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

type Rep Sequence Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep Sequence = D1 (MetaData "Sequence" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "Sequence" PrefixI True) (S1 (MetaSel (Just "seqTable") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TableName) :*: S1 (MetaSel (Just "seqColumn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColumnName)))

newtype TableName Source #

Constructors

TableName 

Fields

Instances
Eq TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep TableName :: Type -> Type #

NFData TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: TableName -> () #

FromField TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Postgres

Diffable Tables Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

Methods

diff :: Tables -> Tables -> Diff Source #

type Rep TableName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep TableName = D1 (MetaData "TableName" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "TableName" PrefixI True) (S1 (MetaSel (Just "tableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Table Source #

Instances
Eq Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: Table -> Table -> Bool #

(/=) :: Table -> Table -> Bool #

Show Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Generic Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep Table :: Type -> Type #

Methods

from :: Table -> Rep Table x #

to :: Rep Table x -> Table #

Semigroup Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(<>) :: Table -> Table -> Table #

sconcat :: NonEmpty Table -> Table #

stimes :: Integral b => b -> Table -> Table #

Monoid Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

mempty :: Table #

mappend :: Table -> Table -> Table #

mconcat :: [Table] -> Table #

NFData Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: Table -> () #

Diffable Tables Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Diff

Methods

diff :: Tables -> Tables -> Diff Source #

type Rep Table Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep Table = D1 (MetaData "Table" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "Table" PrefixI True) (S1 (MetaSel (Just "tableConstraints") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set TableConstraint)) :*: S1 (MetaSel (Just "tableColumns") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Columns)))

newtype ColumnName Source #

Constructors

ColumnName 

Fields

Instances
Eq ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

IsString ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep ColumnName :: Type -> Type #

NFData ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: ColumnName -> () #

FromField ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Postgres

type Rep ColumnName Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep ColumnName = D1 (MetaData "ColumnName" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "ColumnName" PrefixI True) (S1 (MetaSel (Just "columnName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Column Source #

Instances
Eq Column Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: Column -> Column -> Bool #

(/=) :: Column -> Column -> Bool #

Show Column Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic Column Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep Column :: Type -> Type #

Methods

from :: Column -> Rep Column x #

to :: Rep Column x -> Column #

NFData Column Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: Column -> () #

type Rep Column Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep Column = D1 (MetaData "Column" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "Column" PrefixI True) (S1 (MetaSel (Just "columnType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColumnType) :*: S1 (MetaSel (Just "columnConstraints") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set ColumnConstraint))))

data ColumnType Source #

Basic types for columns. We piggyback on 'beam-core' SQL types for now. Albeit they are a bit more specialised (i.e, SQL specific), we are less subject from their and our representation to diverge.

Constructors

SqlStdType DataType

Standard SQL types.

PgSpecificType PgDataType

Postgres specific types.

DbEnumeration EnumerationName Enumeration

An enumeration implemented with text-based encoding.

data PgDataType Source #

Instances
Eq PgDataType Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show PgDataType Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic PgDataType Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep PgDataType :: Type -> Type #

type Rep PgDataType Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep PgDataType = D1 (MetaData "PgDataType" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (((C1 (MetaCons "PgJson" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgJsonB" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "PgRangeInt4" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "PgRangeInt8" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgRangeNum" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "PgRangeTs" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgRangeTsTz" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "PgRangeDate" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "PgUuid" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PgEnumeration" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 EnumerationName))))))

newtype PgEnum a Source #

Constructors

PgEnum a 
Instances
Bounded a => Bounded (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

minBound :: PgEnum a #

maxBound :: PgEnum a #

Enum a => Enum (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

succ :: PgEnum a -> PgEnum a #

pred :: PgEnum a -> PgEnum a #

toEnum :: Int -> PgEnum a #

fromEnum :: PgEnum a -> Int #

enumFrom :: PgEnum a -> [PgEnum a] #

enumFromThen :: PgEnum a -> PgEnum a -> [PgEnum a] #

enumFromTo :: PgEnum a -> PgEnum a -> [PgEnum a] #

enumFromThenTo :: PgEnum a -> PgEnum a -> PgEnum a -> [PgEnum a] #

Eq a => Eq (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: PgEnum a -> PgEnum a -> Bool #

(/=) :: PgEnum a -> PgEnum a -> Bool #

Show a => Show (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

showsPrec :: Int -> PgEnum a -> ShowS #

show :: PgEnum a -> String #

showList :: [PgEnum a] -> ShowS #

Generic (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep (PgEnum a) :: Type -> Type #

Methods

from :: PgEnum a -> Rep (PgEnum a) x #

to :: Rep (PgEnum a) x -> PgEnum a #

(Show a, Typeable a, Enum a, Bounded a) => HasColumnType (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Compat

type Rep (PgEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep (PgEnum a) = D1 (MetaData "PgEnum" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "PgEnum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))

newtype DbEnum a Source #

Constructors

DbEnum a 
Instances
Bounded a => Bounded (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

minBound :: DbEnum a #

maxBound :: DbEnum a #

Enum a => Enum (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

succ :: DbEnum a -> DbEnum a #

pred :: DbEnum a -> DbEnum a #

toEnum :: Int -> DbEnum a #

fromEnum :: DbEnum a -> Int #

enumFrom :: DbEnum a -> [DbEnum a] #

enumFromThen :: DbEnum a -> DbEnum a -> [DbEnum a] #

enumFromTo :: DbEnum a -> DbEnum a -> [DbEnum a] #

enumFromThenTo :: DbEnum a -> DbEnum a -> DbEnum a -> [DbEnum a] #

Eq a => Eq (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: DbEnum a -> DbEnum a -> Bool #

(/=) :: DbEnum a -> DbEnum a -> Bool #

Show a => Show (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

showsPrec :: Int -> DbEnum a -> ShowS #

show :: DbEnum a -> String #

showList :: [DbEnum a] -> ShowS #

Generic (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep (DbEnum a) :: Type -> Type #

Methods

from :: DbEnum a -> Rep (DbEnum a) x #

to :: Rep (DbEnum a) x -> DbEnum a #

(Show a, Typeable a, Enum a, Bounded a) => HasColumnType (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Compat

type Rep (DbEnum a) Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep (DbEnum a) = D1 (MetaData "DbEnum" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" True) (C1 (MetaCons "DbEnum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))

data TableConstraint Source #

Constructors

PrimaryKey ConstraintName (Set ColumnName)

This set of Columns identifies the Table's PrimaryKey.

ForeignKey ConstraintName TableName (Set (ColumnName, ColumnName)) ReferenceAction ReferenceAction

This set of Columns identifies a Table's ForeignKey. This is usually found in the tableConstraints of the table where the foreign key is actually defined (in terms of REFERENCES). The set stores a (fk_column, pk_column) correspondence.

Unique ConstraintName (Set ColumnName) 
Instances
Eq TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep TableConstraint :: Type -> Type #

NFData TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: TableConstraint -> () #

type Rep TableConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

data ColumnConstraint Source #

Constructors

NotNull 
Default Text 
Instances
Eq ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep ColumnConstraint :: Type -> Type #

NFData ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: ColumnConstraint -> () #

type Rep ColumnConstraint Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep ColumnConstraint = D1 (MetaData "ColumnConstraint" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "NotNull" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Default" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data ReferenceAction Source #

Instances
Eq ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Ord ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep ReferenceAction :: Type -> Type #

NFData ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: ReferenceAction -> () #

type Rep ReferenceAction Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep ReferenceAction = D1 (MetaData "ReferenceAction" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) ((C1 (MetaCons "NoAction" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Restrict" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Cascade" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SetNull" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "SetDefault" PrefixI False) (U1 :: Type -> Type))))

data EditSafety Source #

Safety rating for a given edit.

Safety is defined as some EditAction that might cause data loss.

Constructors

Safe 
PotentiallySlow 
Unsafe 

data Edit Source #

Instances
Eq Edit Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

(==) :: Edit -> Edit -> Bool #

(/=) :: Edit -> Edit -> Bool #

Show Edit Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

showsPrec :: Int -> Edit -> ShowS #

show :: Edit -> String #

showList :: [Edit] -> ShowS #

data InsertionOrder Source #

Constructors

Before 
After 
Instances
Eq InsertionOrder Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show InsertionOrder Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic InsertionOrder Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep InsertionOrder :: Type -> Type #

NFData InsertionOrder Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: InsertionOrder -> () #

type Rep InsertionOrder Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep InsertionOrder = D1 (MetaData "InsertionOrder" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "Before" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "After" PrefixI False) (U1 :: Type -> Type))

data DiffError Source #

A possible enumerations of the reasons why a diff operation might not work.

Constructors

AutomaticDiffNotPossible

The diff couldn't be completed. TODO(adn) We need extra information we can later on reify into the raw SQL queries users can try to run themselves.

ValuesRemovedFromEnum EnumerationName [Text]

Postgres doesn't support removing values from an enum.

Instances
Eq DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Show DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Generic DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Associated Types

type Rep DiffError :: Type -> Type #

Exception DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

NFData DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

Methods

rnf :: DiffError -> () #

type Rep DiffError Source # 
Instance details

Defined in Database.Beam.AutoMigrate.Types

type Rep DiffError = D1 (MetaData "DiffError" "Database.Beam.AutoMigrate.Types" "beam-automigrate-0.1.2.0-inplace" False) (C1 (MetaCons "AutomaticDiffNotPossible" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ValuesRemovedFromEnum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 EnumerationName) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))