Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
class DataTypeForBackend bk t where #
Instances
DataTypeForBackend Postgres UUID # | |
DataTypeForBackend Sqlite UUID # | |
DataTypeForBackend bk UUID => DataTypeForBackend bk SpecRunId # | |
Defined in Napkin.Metadata.Migrations | |
BeamSqlBackend bk => DataTypeForBackend bk SpecTableName # | |
Defined in Napkin.Metadata.Migrations dbType :: DataType bk SpecTableName # | |
BeamSqlBackend bk => DataTypeForBackend bk (Ref b) # | |
Defined in Napkin.Metadata.Migrations |
class BeamMigrateSqlBackend be => DefaultMigrationBackend be (m :: Type -> Type) where #
Instances
type SpecRunEntryId = PrimaryKey SpecRunT Identity #
newtype MetadataDb (f :: Type -> Type) #
MetadataDb | |
|
Instances
metadataDb :: MetadataDbBackend be => CheckedDatabaseSettings be MetadataDb #
type MetadataDbBackend be = (BeamSqlBackend be, BeamHasInsertOnConflict be, HasDataTypeCreatedCheck (BeamMigrateSqlBackendDataTypeSyntax be), IsCustomSqlSyntax (Sql92ExpressionSyntax (BeamSqlBackendSyntax be)), IsSql2008BigIntDataTypeSyntax (BeamMigrateSqlBackendDataTypeSyntax be), HasDefaultSqlDataType be (Ref Table), HasDefaultSqlDataType be SpecTableName, HasDefaultSqlDataType be DepChain, HasDefaultSqlDataType be BkStatistics, HasDefaultSqlDataType be UUID, HasDefaultSqlDataType be Pipeline, HasDefaultSqlDataType be AppName, HasDefaultSqlDataType be Pennies, HasDefaultSqlDataType be UTCTime, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Ref Table), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) SpecTableName, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe DepChain), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe BkStatistics), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe Int64), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) Int64, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe UTCTime), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe Text), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) UUID, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) Pipeline, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) AppName, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe Pennies), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) UTCTime, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) NominalDiffTime, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) Text, HasSqlEqualityCheck be UUID, HasSqlEqualityCheck be Pipeline, HasSqlEqualityCheck be AppName, HasSqlEqualityCheck be (Ref Table), HasSqlEqualityCheck be SpecTableName, FromBackendRow be (Ref Table), FromBackendRow be SpecTableName, FromBackendRow be DepChain, FromBackendRow be BkStatistics, FromBackendRow be UUID, FromBackendRow be Pipeline, FromBackendRow be AppName, FromBackendRow be Pennies, FromBackendRow be Int64, FromBackendRow be SqlNull, FromBackendRow be UTCTime, FromBackendRow be Text, FromBackendRow be NominalDiffTime, FromBackendRow be Scientific, HasQBuilder be, DataTypeForBackend be UUID, DataTypeForBackend be SpecRunId, BeamMigrateSqlBackend be, BeamMigrateOnlySqlBackend be, HasSqlDiffTime be) #
type MonadMetadataDb be (m :: Type -> Type) = (MonadBeam be m, MetadataDbBackend be) #
class IsCustomSqlSyntax (Sql92ExpressionSyntax (BeamSqlBackendSyntax be)) => HasSqlDiffTime be where #
diffUTCTime_ :: forall s ctx. QGenExpr ctx be s UTCTime -> QGenExpr ctx be s UTCTime -> QGenExpr ctx be s NominalDiffTime #
Instances
HasSqlDiffTime Postgres # | |
Defined in Napkin.Metadata.Types | |
HasSqlDiffTime Sqlite # | |
Defined in Napkin.Metadata.Types |
Orphan instances
Show SpecRunEntryId # | |||||
showsPrec :: Int -> SpecRunEntryId -> ShowS # show :: SpecRunEntryId -> String # showList :: [SpecRunEntryId] -> ShowS # | |||||
Table SpecRunT # | |||||
primaryKey :: forall (column :: Type -> Type). SpecRunT column -> PrimaryKey SpecRunT column # | |||||
Eq SpecRunEntryId # | |||||
(==) :: SpecRunEntryId -> SpecRunEntryId -> Bool # (/=) :: SpecRunEntryId -> SpecRunEntryId -> Bool # | |||||
(BeamMigrateSqlBackend bk, FromBackendRow bk UUID) => FromBackendRow bk SpecRunId # | |||||
(BeamBackend bk, FromBackendRow bk Scientific) => FromBackendRow bk NominalDiffTime # | |||||
fromBackendRow :: FromBackendRowM bk NominalDiffTime # valuesNeeded :: Proxy bk -> Proxy NominalDiffTime -> Int # | |||||
HasSqlValueSyntax bk UUID => HasSqlValueSyntax bk SpecRunId # | |||||
sqlValueSyntax :: SpecRunId -> bk # | |||||
BeamSqlBackend bk => HasSqlEqualityCheck bk SpecRunId # | |||||
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 # | |||||
defaultSqlDataType :: Proxy SpecRunId -> Proxy bk -> Bool -> BeamSqlBackendDataTypeSyntax bk # defaultSqlDataTypeConstraints :: Proxy SpecRunId -> Proxy bk -> Bool -> [FieldCheck] # | |||||
Beamable (PrimaryKey SpecRunT) # | |||||
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) # | |||||
from :: PrimaryKey SpecRunT f -> Rep (PrimaryKey SpecRunT f) x # to :: Rep (PrimaryKey SpecRunT f) x -> PrimaryKey SpecRunT f # | |||||
Show (PrimaryKey SpecRunT (Nullable Identity)) # | |||||