arbiter-core-0.1.0.0: Core types and logic for PostgreSQL-backed job queue
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.HasArbiterSchema

Description

Associates a monad with its PostgreSQL schema name and queue registry.

Synopsis

Documentation

class Monad m => HasArbiterSchema (m :: Type -> Type) (registry :: JobPayloadRegistry) | m -> registry where Source #

Links a monad to a schema name and registry. The fundep m -> registry lets the high-level API resolve table names from payload types at compile time.

Methods

getSchema :: m SchemaName Source #

The schema name for this monad's Arbiter tables.