Create a Pool Connection with the appropriate parameters
Modulepg-entity-0.0.4.4Haskell2010
Database.PostgreSQL.Entity.DBT
The DBT plumbing module to handle database queries and pools
- 1 type
- 8 values
- Packagepg-entity-0.0.4.4
- Exports9
- LanguageHaskell2010
- LicenceMIT
- SourceDBT.hs
Run a DBT action with no explicit error handling.
This functions is suited for using MonadError error handling.
Example
let e1 = E 1 True True
result <- runExceptT @EntityError $ do
withPool pool $ insertEntity e1
withPool pool $ markForProcessing 1
case result of
Left err -> print err
Right _ -> putStrLn "Everything went well"See the code in the example/ directory on GitHub
Query wrapper for SQL statements which do not return.
Query wrapper for SQL statements that operate on multiple rows which do not return.
Query wrapper that returns a Vector of results
Query wrapper that returns a Vector of results and does not take an argument
Query wrapper that returns one result.
Query wrapper that returns one result and does not take an argument
Instances2Eq, Show
Eq QueryNatureDefined in pg-entity-0.0.4.4 · Database.PostgreSQL.Entity.DBTShow QueryNatureDefined in pg-entity-0.0.4.4 · Database.PostgreSQL.Entity.DBT