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
parser :: Parser Config #
newtype DbConnStr Source #
fromString :: String -> DbConnStr #
readsPrec :: Int -> ReadS DbConnStr #
readList :: ReadS [DbConnStr] #
readPrec :: ReadPrec DbConnStr #
readListPrec :: ReadPrec [DbConnStr] #
showsPrec :: Int -> DbConnStr -> ShowS #
show :: DbConnStr -> String #
showList :: [DbConnStr] -> ShowS #
(==) :: DbConnStr -> DbConnStr -> Bool #
(/=) :: DbConnStr -> DbConnStr -> Bool #
parser :: Parser DbConnStr #
newtype DbConnNum Source #
(+) :: 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 #
(==) :: DbConnNum -> DbConnNum -> Bool #
(/=) :: DbConnNum -> DbConnNum -> Bool #
parser :: Parser DbConnNum #
runMigrate :: HasConfig env Config => Migration -> RIO env () Source #