Database.HDBC.SqlValue: exported symbols usage examples

Symbols

  • fromSql No usage example found for this symbol :( Collapse [-]
    iToSql No usage example found for this symbol :( Collapse [-]
    nToSql No usage example found for this symbol :( Collapse [-]
    posixToSql No usage example found for this symbol :( Collapse [-]
    safeFromSql See 1 Occurences [+] Collapse [-]
    Found in Database.YeshQL.HDBC.SqlRow.Class from the package yeshql-hdbc
    class FromSqlRow a where
        parseSqlRow :: Parser a
    
    fromSqlRow :: (FromSqlRow a, Monad m) => [SqlValue] -> m a
    fromSqlRow sqlValues =
        case runParser parseSqlRow sqlValues of
            Left err -> fail err
            Right (value, _) -> return value
    
    class (ToSqlRow a, FromSqlRow a) => SqlRow a where
    
    parseField :: Convertible SqlValue a => Parser a
    parseField = Parser $ \case
        [] -> Left "Not enough columns in result set"
        (x:xs) -> case safeFromSql x of
            Left cerr -> Left . prettyConvertError $ cerr
            Right a -> Right (a, xs)
    
    eof :: Parser ()
    eof = Parser $ \case
    

    toSql No usage example found for this symbol :( Collapse [-]
    SqlValue No usage example found for this symbol :( Collapse [-]