napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Metadata.Types.SpecRun

Synopsis

Documentation

newtype SpecState #

Constructors

SpecState 

Instances

Instances details
Generic SpecState # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Associated Types

type Rep SpecState 
Instance details

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))))
Show SpecState # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Default SpecState # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

def :: SpecState #

Eq SpecState # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

type Rep SpecState # 
Instance details

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))))

newtype Pennies #

Constructors

Pennies Int64 

Instances

Instances details
FromJSON Pennies # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Generic Pennies # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Associated Types

type Rep Pennies 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

type Rep Pennies = D1 ('MetaData "Pennies" "Napkin.Metadata.Types.SpecRun" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "Pennies" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)))

Methods

from :: Pennies -> Rep Pennies x #

to :: Rep Pennies x -> Pennies #

Show Pennies # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Eq Pennies # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

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

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

(BeamMigrateSqlBackend bk, FromBackendRow bk Int64) => FromBackendRow bk Pennies # 
Instance details

Defined in Napkin.Metadata.Instances

HasSqlValueSyntax bk Int64 => HasSqlValueSyntax bk Pennies # 
Instance details

Defined in Napkin.Metadata.Instances

Methods

sqlValueSyntax :: Pennies -> bk #

BeamSqlBackend bk => HasSqlEqualityCheck bk Pennies # 
Instance details

Defined in Napkin.Metadata.Instances

(IsSql2008BigIntDataTypeSyntax (BeamMigrateSqlBackendDataTypeSyntax bk), BeamMigrateSqlBackend bk) => HasDefaultSqlDataType bk Pennies # 
Instance details

Defined in Napkin.Metadata.Instances

type Rep Pennies # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

type Rep Pennies = D1 ('MetaData "Pennies" "Napkin.Metadata.Types.SpecRun" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "Pennies" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)))

newtype SpecRunId #

Each run of the spec for a table is captured

Constructors

SpecRunId UUID 

Instances

Instances details
Show SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Eq SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

(BeamMigrateSqlBackend bk, FromBackendRow bk UUID) => FromBackendRow bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types

HasSqlValueSyntax bk UUID => HasSqlValueSyntax bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types

Methods

sqlValueSyntax :: SpecRunId -> bk #

BeamSqlBackend bk => HasSqlEqualityCheck bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types

(HasDefaultSqlDataType bk UUID, BeamMigrateSqlBackend bk) => HasDefaultSqlDataType bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Types

DataTypeForBackend bk UUID => DataTypeForBackend bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Migrations

Methods

dbType :: DataType bk SpecRunId #

data SpecRunT (f :: Type -> Type) #

Constructors

SpecRun 

Fields

Instances

Instances details
ToJSON SpecRun # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Show SpecRunEntryId # 
Instance details

Defined in Napkin.Metadata.Types

Show SpecRun # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Beamable SpecRunT # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

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)) -> SpecRunT f -> SpecRunT g -> m (SpecRunT h) #

tblSkeleton :: TableSkeleton SpecRunT #

Table SpecRunT # 
Instance details

Defined in Napkin.Metadata.Types

Associated Types

data PrimaryKey SpecRunT f 
Instance details

Defined in Napkin.Metadata.Types

Methods

primaryKey :: forall (column :: Type -> Type). SpecRunT column -> PrimaryKey SpecRunT column #

Eq SpecRunEntryId # 
Instance details

Defined in Napkin.Metadata.Types

Eq SpecRun # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

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

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

LogItem SpecRun # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

ToObject SpecRun # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

toObject :: SpecRun -> Object #

Generic (SpecRunT f) # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Associated Types

type Rep (SpecRunT f) 
Instance details

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)))))))))

Methods

from :: SpecRunT f -> Rep (SpecRunT f) x #

to :: Rep (SpecRunT f) x -> SpecRunT f #

Beamable (PrimaryKey SpecRunT) # 
Instance details

Defined in Napkin.Metadata.Types

Methods

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) #

tblSkeleton :: TableSkeleton (PrimaryKey SpecRunT) #

Generic (PrimaryKey SpecRunT f) # 
Instance details

Defined in Napkin.Metadata.Types

Associated Types

type Rep (PrimaryKey SpecRunT f) 
Instance details

Defined in Napkin.Metadata.Types

type Rep (PrimaryKey SpecRunT f) = D1 ('MetaData "PrimaryKey" "Napkin.Metadata.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "SpecRunEntryId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f UUID))))
Show (PrimaryKey SpecRunT (Nullable Identity)) # 
Instance details

Defined in Napkin.Metadata.Types

data PrimaryKey SpecRunT f # 
Instance details

Defined in Napkin.Metadata.Types

type Rep (SpecRunT f) # 
Instance details

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

Defined in Napkin.Metadata.Types

type Rep (PrimaryKey SpecRunT f) = D1 ('MetaData "PrimaryKey" "Napkin.Metadata.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "SpecRunEntryId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (C f UUID))))

data SpecTarget #

Constructors

SpecTable 
SpecView 

Instances

Instances details
Data SpecTarget # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun

Methods

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

Defined in Napkin.Metadata.Types.SpecRun

Eq SpecTarget # 
Instance details

Defined in Napkin.Metadata.Types.SpecRun