Popularity
5.6
Growing
Activity
0.0
Stable
13
3
1
Monthly Downloads: 2
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.
-
postgresql-simple-queue
A PostgreSQL backed queue
Do you think we are missing an alternative of postgresql-named or a related project?
README
postgresql-named
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