persistent-1.0.1.1: Type-safe, multi-backend data serialization.

Safe HaskellNone

Database.Persist.GenericSql.Raw

Documentation

withStmt :: (MonadSqlPersist m, MonadResource m) => Text -> [PersistValue] -> Source m [PersistValue]Source

execute :: MonadSqlPersist m => Text -> [PersistValue] -> m ()Source

newtype SqlPersist m a Source

Constructors

SqlPersist 

Instances

MonadTrans SqlPersist 
MonadTransControl SqlPersist 
(PersistStore SqlPersist m, MonadBaseControl IO m, MonadUnsafeIO m, MonadIO m, MonadThrow m, MonadLogger m) => PersistUnique SqlPersist m 
(MonadBaseControl IO (SqlPersist m), MonadBaseControl IO m, MonadIO m, MonadThrow m, MonadUnsafeIO m, MonadLogger m) => PersistStore SqlPersist m 
(PersistStore SqlPersist m, MonadThrow m, MonadIO m, MonadUnsafeIO m, MonadBaseControl IO m, MonadLogger m) => PersistQuery SqlPersist m 
(Applicative backend, Applicative (SqlPersist m), Monad backend, Monad (SqlPersist m), MonadBase backend m) => MonadBase backend (SqlPersist m) 
(MonadBase backend (SqlPersist m), MonadBaseControl backend m) => MonadBaseControl backend (SqlPersist m) 
Monad m => Monad (SqlPersist m) 
Functor m => Functor (SqlPersist m) 
(Monad (SqlPersist m), MonadPlus m) => MonadPlus (SqlPersist m) 
(Functor (SqlPersist m), Applicative m) => Applicative (SqlPersist m) 
(Monad (SqlPersist m), MonadThrow m) => MonadThrow (SqlPersist m) 
(MonadThrow (SqlPersist m), MonadUnsafeIO (SqlPersist m), MonadIO (SqlPersist m), Applicative (SqlPersist m), MonadResource m) => MonadResource (SqlPersist m) 
(Monad (SqlPersist m), MonadLogger m) => MonadLogger (SqlPersist m) 
(Monad (SqlPersist m), MonadIO m) => MonadIO (SqlPersist m) 
(MonadIO (SqlPersist m), MonadLogger (SqlPersist m), MonadIO m, MonadLogger m) => MonadSqlPersist (SqlPersist m) 
PathPiece (Key SqlPersist entity) 
(PersistEntity one, PersistEntity many, Eq (Key SqlPersist one)) => RunJoin (SelectOneMany SqlPersist one many) 

getStmt :: MonadSqlPersist m => Text -> m StatementSource