{"id":15010982,"url":"https://github.com/cocreature/postgresql-named","last_synced_at":"2026-03-04T01:02:24.174Z","repository":{"id":56875171,"uuid":"94127004","full_name":"cocreature/postgresql-named","owner":"cocreature","description":"Deserialize PostgreSQL rows to Haskell records by matching column names and record field names","archived":false,"fork":false,"pushed_at":"2018-02-19T17:20:20.000Z","size":17,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T20:43:26.834Z","etag":null,"topics":["haskell","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cocreature.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-12T18:19:42.000Z","updated_at":"2019-12-05T06:35:30.000Z","dependencies_parsed_at":"2022-08-20T22:00:36.290Z","dependency_job_id":null,"html_url":"https://github.com/cocreature/postgresql-named","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocreature%2Fpostgresql-named","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocreature%2Fpostgresql-named/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocreature%2Fpostgresql-named/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocreature%2Fpostgresql-named/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cocreature","download_url":"https://codeload.github.com/cocreature/postgresql-named/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248089952,"owners_count":21045997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","postgresql"],"created_at":"2024-09-24T19:38:05.478Z","updated_at":"2026-03-04T01:02:19.127Z","avatar_url":"https://github.com/cocreature.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgresql-named\n\n[![Travis](https://img.shields.io/travis/cocreature/postgresql-named.svg)](https://travis-ci.org/cocreature/postgresql-named)\n[![Hackage](https://img.shields.io/hackage/v/postgresql-named.svg)](https://hackage.haskell.org/package/postgresql-named)\n\nLibrary for deserializing rows in `postgresql-simple` (or any other\nlibrary that uses `FromRow`) based on column names instead of the\npositions of columns.\n\n## Example\n\n```haskell\n{-# LANGUAGE DeriveGeneric #-}\nimport           Database.PostgreSQL.Simple.FromRow\nimport           Database.PostgreSQL.Simple.FromRow.Named\nimport qualified GHC.Generics as GHC\nimport           Generics.SOP\n\ndata Foobar = Foobar\n  { foo :: !String\n  , bar :: !Int\n  } deriving (Show, Eq, Ord, GHC.Generic)\n\n\ninstance Generic Foobar\n\ninstance HasDatatypeInfo Foobar\n\ninstance FromRow Foobar where\n  fromRow = gFromRow\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocreature%2Fpostgresql-named","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcocreature%2Fpostgresql-named","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocreature%2Fpostgresql-named/lists"}