Some monad with Selda SQL capabilitites.
Methods
withConnection :: (SeldaConnection (Backend m) -> m a) -> m aPass a Selda connection to the given computation and execute it. After the computation finishes,
withConnectionis free to do anything it likes to the connection, including closing it or giving it to another Selda computation. Thus, the computation must take care never to return or otherwise access the connection after returning.transact :: m a -> m aPerform the given computation as a transaction. Implementations must ensure that subsequent calls to withConnection within the same transaction always passes the same connection to its argument.
Instances1MonadSelda
(MonadIO m, MonadMask m) => MonadSelda (SeldaT b m)Defined in selda-0.5.2.1 · Database.Selda.Backend.Internal