Tonatona.Persist.Postgresql
run :: HasConfig env Config => TonaDbM env a -> RIO env a Source #
Main function.
type TonaDbM env = ReaderT SqlBackend (RIO env) Source #
data Config Source #
Constructors
Fields
Defined in Tonatona.Persist.Postgresql
Methods
showsPrec :: Int -> Config -> ShowS #
show :: Config -> String #
showList :: [Config] -> ShowS #
parser :: Parser Config #
newtype DbConnStr Source #
(==) :: DbConnStr -> DbConnStr -> Bool #
(/=) :: DbConnStr -> DbConnStr -> Bool #
readsPrec :: Int -> ReadS DbConnStr #
readList :: ReadS [DbConnStr] #
readPrec :: ReadPrec DbConnStr #
readListPrec :: ReadPrec [DbConnStr] #
showsPrec :: Int -> DbConnStr -> ShowS #
show :: DbConnStr -> String #
showList :: [DbConnStr] -> ShowS #
fromString :: String -> DbConnStr #
parser :: Parser DbConnStr #
newtype DbConnNum Source #
(==) :: DbConnNum -> DbConnNum -> Bool #
(/=) :: DbConnNum -> DbConnNum -> Bool #
(+) :: DbConnNum -> DbConnNum -> DbConnNum #
(-) :: DbConnNum -> DbConnNum -> DbConnNum #
(*) :: DbConnNum -> DbConnNum -> DbConnNum #
negate :: DbConnNum -> DbConnNum #
abs :: DbConnNum -> DbConnNum #
signum :: DbConnNum -> DbConnNum #
fromInteger :: Integer -> DbConnNum #
readsPrec :: Int -> ReadS DbConnNum #
readList :: ReadS [DbConnNum] #
readPrec :: ReadPrec DbConnNum #
readListPrec :: ReadPrec [DbConnNum] #
showsPrec :: Int -> DbConnNum -> ShowS #
show :: DbConnNum -> String #
showList :: [DbConnNum] -> ShowS #
parser :: Parser DbConnNum #
runMigrate :: HasConfig env Config => Migration -> RIO env () Source #