Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module for creating great logs in code that makes SQL queries.
Synopsis
- data Details
- emptyDetails :: Details
- query :: Details -> Maybe (Secret Text)
- queryTemplate :: Details -> Maybe Text
- sqlOperation :: Details -> Maybe Text
- queriedRelation :: Details -> Maybe Text
- databaseType :: Details -> Maybe Text
- host :: Details -> Maybe Text
- port :: Details -> Maybe Int
- database :: Details -> Maybe Text
- rowsReturned :: Details -> Maybe Int
- mysql :: Text
- postgresql :: Text
Documentation
A type describing an SQL query.
emptyDetails { query = Just (Log.mkSecret "SELECT cuddles FROM puppies") , database = Just postgresql }
Instances
emptyDetails :: Details Source #
An empty details value to be modified by you.
sqlOperation :: Details -> Maybe Text Source #
The SQL operation we're performing (SELECT INSERT DELETE / ...).
postgresql :: Text Source #
Postgresql