Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains a schema for beam migration tools. Used by the CLI and the managed migrations support here.
Documentation
LogEntry | |
|
Table LogEntryT Source # | |
Beamable LogEntryT Source # | |
Show (LogEntryT Identity) Source # | |
Generic (LogEntryT f) Source # | |
Beamable (PrimaryKey LogEntryT) Source # | |
Show (PrimaryKey LogEntryT Identity) Source # | |
Generic (PrimaryKey LogEntryT f) Source # | |
data PrimaryKey LogEntryT Source # | |
type Rep (LogEntryT f) Source # | |
type Rep (PrimaryKey LogEntryT f) Source # | |
type LogEntryKey = PrimaryKey LogEntryT Identity Source #
newtype BeamMigrateVersionT f Source #
data BeamMigrateDb entity Source #
BeamMigrateDb | |
|
Database be BeamMigrateDb Source # | |
Generic (BeamMigrateDb entity) Source # | |
type Rep (BeamMigrateDb entity) Source # | |
beamMigratableDb :: forall cmd be hdl m. (Sql92SaneDdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), MonadBeam cmd be hdl m) => CheckedDatabaseSettings be BeamMigrateDb Source #
beamMigrateDb :: forall be cmd hdl m. (Sql92SaneDdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), MonadBeam cmd be hdl m) => DatabaseSettings be BeamMigrateDb Source #
beamMigrateDbMigration :: forall cmd be hdl m. (Sql92SaneDdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), MonadBeam cmd be hdl m) => Migration cmd (CheckedDatabaseSettings be BeamMigrateDb) Source #
getLatestLogEntry :: forall be cmd hdl m. (IsSql92Syntax cmd, HasQBuilder (Sql92SelectSyntax cmd), Sql92ReasonableMarshaller be, Sql92SanityCheck cmd, Sql92SaneDdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), MonadBeam cmd be hdl m) => m (Maybe LogEntry) Source #
updateSchemaToCurrent :: forall be cmd hdl m. (IsSql92Syntax cmd, Sql92SanityCheck cmd, Sql92ReasonableMarshaller be, Sql92SaneDdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), MonadBeam cmd be hdl m) => m () Source #
recordCommit :: forall be cmd hdl m. (IsSql92Syntax cmd, Sql92SanityCheck cmd, Sql92SaneDdlCommandSyntax cmd, HasQBuilder (Sql92SelectSyntax cmd), Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), HasSqlValueSyntax (Sql92ValueSyntax cmd) Text, Sql92ReasonableMarshaller be, MonadBeam cmd be hdl m) => UUID -> m () Source #
ensureBackendTables :: forall be cmd hdl m. BeamMigrationBackend cmd be hdl m -> m () Source #
checkForBackendTables :: BeamMigrationBackend cmd be hdl m -> m Bool Source #