Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class DataTypeForBackend bk t where #
Instances
DataTypeForBackend bk UUID => DataTypeForBackend bk SpecRunId # | |
Defined in Napkin.Metadata.Migrations | |
DataTypeForBackend Postgres UUID # | |
DataTypeForBackend Sqlite UUID # | |
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.9-9RVzJKhltBGIJ4XYUA68gX" '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 (Showing DepChain), HasDefaultSqlDataType be UUID, HasDefaultSqlDataType be Pipeline, HasDefaultSqlDataType be AppName, HasDefaultSqlDataType be Pennies, HasDefaultSqlDataType be UTCTime, HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Ref Table), HasSqlValueSyntax (BeamSqlBackendValueSyntax be) (Maybe (Showing DepChain)), 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), FromBackendRow be (Ref Table), FromBackendRow be (Showing DepChain), 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 |