napkin-0.5.11
Safe HaskellNone
LanguageHaskell2010

Napkin.Metadata.Types

Documentation

class DataTypeForBackend bk t where #

Methods

dbType :: DataType bk t #

Instances

Instances details
DataTypeForBackend bk UUID => DataTypeForBackend bk SpecRunId # 
Instance details

Defined in Napkin.Metadata.Migrations

Methods

dbType :: DataType bk SpecRunId #

DataTypeForBackend Postgres UUID # 
Instance details

Defined in Napkin.Metadata.Migrations

DataTypeForBackend Sqlite UUID # 
Instance details

Defined in Napkin.Metadata.Migrations

BeamSqlBackend bk => DataTypeForBackend bk (Ref b) # 
Instance details

Defined in Napkin.Metadata.Migrations

Methods

dbType :: DataType bk (Ref b) #

newtype MetadataDb f #

Constructors

MetadataDb 

Instances

Instances details
Database be MetadataDb # 
Instance details

Defined in Napkin.Metadata.Types

Methods

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

Defined in Napkin.Metadata.Types

Associated Types

type Rep (MetadataDb f) :: Type -> Type #

Methods

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

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

type Rep (MetadataDb f) # 
Instance details

Defined in Napkin.Metadata.Types

type Rep (MetadataDb f) = D1 ('MetaData "MetadataDb" "Napkin.Metadata.Types" "napkin-0.5.11-AmFJpcsQ4Ny8ZeMMGxUvw7" 'True) (C1 ('MetaCons "MetadataDb" 'PrefixI 'True) (S1 ('MetaSel ('Just "specRuns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f (TableEntity SpecRunT)))))

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

class IsCustomSqlSyntax (Sql92ExpressionSyntax (BeamSqlBackendSyntax be)) => HasSqlDiffTime be where #

Methods

diffUTCTime_ :: forall s ctx. QGenExpr ctx be s UTCTime -> QGenExpr ctx be s UTCTime -> QGenExpr ctx be s NominalDiffTime #

Instances

Instances details
HasSqlDiffTime Postgres # 
Instance details

Defined in Napkin.Metadata.Types

HasSqlDiffTime Sqlite # 
Instance details

Defined in Napkin.Metadata.Types

Methods

diffUTCTime_ :: forall s ctx. QGenExpr ctx Sqlite s UTCTime -> QGenExpr ctx Sqlite s UTCTime -> QGenExpr ctx Sqlite s NominalDiffTime #

Orphan instances

Eq SpecRunEntryId # 
Instance details

Show SpecRunEntryId # 
Instance details

Table SpecRunT # 
Instance details

Associated Types

data PrimaryKey SpecRunT column #

Methods

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

BeamSqlBackend bk => HasSqlEqualityCheck bk SpecRunId # 
Instance details

HasSqlValueSyntax bk UUID => HasSqlValueSyntax bk SpecRunId # 
Instance details

Methods

sqlValueSyntax :: SpecRunId -> bk #

(BeamBackend bk, FromBackendRow bk Double) => FromBackendRow bk NominalDiffTime # 
Instance details

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

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

Beamable (PrimaryKey SpecRunT) # 
Instance details

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

Show (PrimaryKey SpecRunT (Nullable Identity)) # 
Instance details

Generic (PrimaryKey SpecRunT f) # 
Instance details

Associated Types

type Rep (PrimaryKey SpecRunT f) :: Type -> Type #