Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- newtype SpecState = SpecState {}
- newtype Pennies = Pennies Int64
- newtype SpecRunId = SpecRunId UUID
- data SpecRunT (f :: Type -> Type) = SpecRun {
- entryId :: C f UUID
- app :: C f AppName
- pipeline :: C f Pipeline
- runId :: C f SpecRunId
- table :: C f SpecTableName
- started :: C f UTCTime
- complete :: C f (Maybe UTCTime)
- action :: C f (Maybe Text)
- error :: C f (Maybe Text)
- rowsAffected :: C f (Maybe Int64)
- serverTime :: C f (Maybe Int64)
- hookRowsAffected :: C f (Maybe Int64)
- hookServerTime :: C f (Maybe Int64)
- dependencies :: C f (Maybe DepChain)
- backend :: C f (Maybe Text)
- backendStats :: C f (Maybe BkStatistics)
- hookBackendStats :: C f (Maybe BkStatistics)
- type SpecRun = SpecRunT Identity
- data SpecTarget
Documentation
Instances
Generic SpecState # | |||||
Defined in Napkin.Metadata.Types.SpecRun
| |||||
Show SpecState # | |||||
Default SpecState # | |||||
Defined in Napkin.Metadata.Types.SpecRun | |||||
Eq SpecState # | |||||
type Rep SpecState # | |||||
Defined in Napkin.Metadata.Types.SpecRun type Rep SpecState = D1 ('MetaData "SpecState" "Napkin.Metadata.Types.SpecRun" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "SpecState" 'PrefixI 'True) (S1 ('MetaSel ('Just "tables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SpecTableName SpecRun)))) |
Instances
Each run of the spec for a table is captured
Instances
Show SpecRunId # | |
Eq SpecRunId # | |
(BeamMigrateSqlBackend bk, FromBackendRow bk UUID) => FromBackendRow bk SpecRunId # | |
Defined in Napkin.Metadata.Types | |
HasSqlValueSyntax bk UUID => HasSqlValueSyntax bk SpecRunId # | |
Defined in Napkin.Metadata.Types sqlValueSyntax :: SpecRunId -> bk # | |
BeamSqlBackend bk => HasSqlEqualityCheck bk SpecRunId # | |
Defined in Napkin.Metadata.Types sqlEqE :: Proxy SpecRunId -> Proxy bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk # sqlNeqE :: Proxy SpecRunId -> Proxy bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk # sqlEqTriE :: Proxy SpecRunId -> Proxy bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk # sqlNeqTriE :: Proxy SpecRunId -> Proxy bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk -> BeamSqlBackendExpressionSyntax bk # | |
(HasDefaultSqlDataType bk UUID, BeamMigrateSqlBackend bk) => HasDefaultSqlDataType bk SpecRunId # | |
Defined in Napkin.Metadata.Types defaultSqlDataType :: Proxy SpecRunId -> Proxy bk -> Bool -> BeamSqlBackendDataTypeSyntax bk # defaultSqlDataTypeConstraints :: Proxy SpecRunId -> Proxy bk -> Bool -> [FieldCheck] # | |
DataTypeForBackend bk UUID => DataTypeForBackend bk SpecRunId # | |
Defined in Napkin.Metadata.Migrations |
data SpecRunT (f :: Type -> Type) #
SpecRun | |
|
Instances
ToJSON SpecRun # | |||||
Show SpecRunEntryId # | |||||
Defined in Napkin.Metadata.Types showsPrec :: Int -> SpecRunEntryId -> ShowS # show :: SpecRunEntryId -> String # showList :: [SpecRunEntryId] -> ShowS # | |||||
Show SpecRun # | |||||
Beamable SpecRunT # | |||||
Table SpecRunT # | |||||
Defined in Napkin.Metadata.Types
primaryKey :: forall (column :: Type -> Type). SpecRunT column -> PrimaryKey SpecRunT column # | |||||
Eq SpecRunEntryId # | |||||
Defined in Napkin.Metadata.Types (==) :: SpecRunEntryId -> SpecRunEntryId -> Bool # (/=) :: SpecRunEntryId -> SpecRunEntryId -> Bool # | |||||
Eq SpecRun # | |||||
LogItem SpecRun # | |||||
Defined in Napkin.Metadata.Types.SpecRun payloadKeys :: Verbosity -> SpecRun -> PayloadSelection # | |||||
ToObject SpecRun # | |||||
Defined in Napkin.Metadata.Types.SpecRun | |||||
Generic (SpecRunT f) # | |||||
Defined in Napkin.Metadata.Types.SpecRun
| |||||
Beamable (PrimaryKey SpecRunT) # | |||||
Defined in Napkin.Metadata.Types zipBeamFieldsM :: forall m (f :: Type -> Type) (g :: Type -> Type) (h :: Type -> Type). Applicative m => (forall a. Columnar' f a -> Columnar' g a -> m (Columnar' h a)) -> PrimaryKey SpecRunT f -> PrimaryKey SpecRunT g -> m (PrimaryKey SpecRunT h) # | |||||
Generic (PrimaryKey SpecRunT f) # | |||||
Defined in Napkin.Metadata.Types
from :: PrimaryKey SpecRunT f -> Rep (PrimaryKey SpecRunT f) x # to :: Rep (PrimaryKey SpecRunT f) x -> PrimaryKey SpecRunT f # | |||||
Show (PrimaryKey SpecRunT (Nullable Identity)) # | |||||
data PrimaryKey SpecRunT f # | |||||
Defined in Napkin.Metadata.Types | |||||
type Rep (SpecRunT f) # | |||||
Defined in Napkin.Metadata.Types.SpecRun type Rep (SpecRunT f) = D1 ('MetaData "SpecRunT" "Napkin.Metadata.Types.SpecRun" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "SpecRun" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "entryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f UUID)) :*: S1 ('MetaSel ('Just "app") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f AppName))) :*: (S1 ('MetaSel ('Just "pipeline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f Pipeline)) :*: S1 ('MetaSel ('Just "runId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f SpecRunId)))) :*: ((S1 ('MetaSel ('Just "table") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f SpecTableName)) :*: S1 ('MetaSel ('Just "started") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f UTCTime))) :*: (S1 ('MetaSel ('Just "complete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe UTCTime))) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Text))) :*: S1 ('MetaSel ('Just "rowsAffected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Int64)))) :*: (S1 ('MetaSel ('Just "serverTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Int64))) :*: S1 ('MetaSel ('Just "hookRowsAffected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Int64))))) :*: ((S1 ('MetaSel ('Just "hookServerTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Int64))) :*: S1 ('MetaSel ('Just "dependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe DepChain)))) :*: (S1 ('MetaSel ('Just "backend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe Text))) :*: (S1 ('MetaSel ('Just "backendStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe BkStatistics))) :*: S1 ('MetaSel ('Just "hookBackendStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f (Maybe BkStatistics))))))))) | |||||
type Rep (PrimaryKey SpecRunT f) # | |||||
Defined in Napkin.Metadata.Types |
data SpecTarget #
Instances
Data SpecTarget # | |
Defined in Napkin.Metadata.Types.SpecRun gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SpecTarget -> c SpecTarget # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SpecTarget # toConstr :: SpecTarget -> Constr # dataTypeOf :: SpecTarget -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SpecTarget) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SpecTarget) # gmapT :: (forall b. Data b => b -> b) -> SpecTarget -> SpecTarget # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SpecTarget -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SpecTarget -> r # gmapQ :: (forall d. Data d => d -> u) -> SpecTarget -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SpecTarget -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SpecTarget -> m SpecTarget # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SpecTarget -> m SpecTarget # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SpecTarget -> m SpecTarget # | |
Show SpecTarget # | |
Defined in Napkin.Metadata.Types.SpecRun showsPrec :: Int -> SpecTarget -> ShowS # show :: SpecTarget -> String # showList :: [SpecTarget] -> ShowS # | |
Eq SpecTarget # | |
Defined in Napkin.Metadata.Types.SpecRun (==) :: SpecTarget -> SpecTarget -> Bool # (/=) :: SpecTarget -> SpecTarget -> Bool # |