Popularity
5.7
Declining
Activity
0.0
Stable
13
3
0

Monthly Downloads: 11
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Web     PostgreSQL    

postgresql-named alternatives and similar packages

Based on the "postgresql" category.
Alternatively, view postgresql-named alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of postgresql-named or a related project?

Add another 'postgresql' Package

README

postgresql-named

Travis Hackage

Library for deserializing rows in postgresql-simple (or any other library that uses FromRow) based on column names instead of the positions of columns.

Example

{-# LANGUAGE DeriveGeneric #-}
import           Database.PostgreSQL.Simple.FromRow
import           Database.PostgreSQL.Simple.FromRow.Named
import qualified GHC.Generics as GHC
import           Generics.SOP

data Foobar = Foobar
  { foo :: !String
  , bar :: !Int
  } deriving (Show, Eq, Ord, GHC.Generic)


instance Generic Foobar

instance HasDatatypeInfo Foobar

instance FromRow Foobar where
  fromRow = gFromRow