module Simplex.Messaging.Server.QueueStore.Postgres.Config
  ( PostgresStoreCfg (..),
  ) where

import Data.Int (Int64)
import Simplex.Messaging.Agent.Store.Postgres.Options (DBOpts)
import Simplex.Messaging.Agent.Store.Shared (MigrationConfirmation)

data PostgresStoreCfg = PostgresStoreCfg
  { PostgresStoreCfg -> DBOpts
dbOpts :: DBOpts,
    PostgresStoreCfg -> Maybe FilePath
dbStoreLogPath :: Maybe FilePath,
    PostgresStoreCfg -> MigrationConfirmation
confirmMigrations :: MigrationConfirmation,
    PostgresStoreCfg -> Int64
deletedTTL :: Int64
  }