packages feed

hasql-1.10.3.5: src/library/Hasql/Connection/Config.hs

module Hasql.Connection.Config where

import Hasql.Platform.Prelude

data Config
  = Config
  { -- | Pre-rendered connection string.
    connectionString :: ByteString,
    noPreparedStatements :: Bool
  }
  deriving stock (Eq)

-- | For values that can be compiled to 'Config'.
class Constructs a where
  construct :: a -> Config