Safe Haskell | Safe-Inferred |
---|---|
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 where #
Instances
type SpecRunEntryId = PrimaryKey SpecRunT Identity #
newtype MetadataDb f #
MetadataDb | |
|
Instances
Database be MetadataDb # | |
Defined in Napkin.Metadata.Types zipTables :: Applicative m => Proxy be -> (forall tbl. (IsDatabaseEntity be tbl, DatabaseEntityRegularRequirements be tbl) => f tbl -> g tbl -> m (h tbl)) -> MetadataDb f -> MetadataDb g -> m (MetadataDb h) # | |
Generic (MetadataDb f) # | |
Defined in Napkin.Metadata.Types type Rep (MetadataDb f) :: Type -> Type # from :: MetadataDb f -> Rep (MetadataDb f) x # to :: Rep (MetadataDb f) x -> MetadataDb f # | |
type Rep (MetadataDb f) # | |
Defined in Napkin.Metadata.Types type Rep (MetadataDb f) = D1 ('MetaData "MetadataDb" "Napkin.Metadata.Types" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'True) (C1 ('MetaCons "MetadataDb" 'PrefixI 'True) (S1 ('MetaSel ('Just "specRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f (TableEntity SpecRunT))))) |
metadataDb :: forall be. MetadataDbBackend be => CheckedDatabaseSettings be MetadataDb #
type MetadataDbBackend be = (BeamSqlBackend 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) (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, 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, HasQBuilder be, DataTypeForBackend be UUID, DataTypeForBackend be SpecRunId, BeamMigrateSqlBackend be, BeamMigrateOnlySqlBackend be, HasSqlDiffTime be) #
type MonadMetadataDb be m = (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 |