postgresql-orm
postgresql-orm copied to clipboard
An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.
``` {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveGeneric #-} module Main where import Database.PostgreSQL.ORM import Data.Text import GHC.Generics import Database.PostgreSQL.Simple import Database.PostgreSQL.Migrations data Post = Post { postId :: DBKey...
Any plans on https://github.com/fpco/stackage/blob/master/MAINTAINERS.md#adding-a-package?
@nd2s asked whether we'd change the license to LGPL instead of GPL as GPL is cumbersome to use in some settings, and all the simple-\* code is LGPL anyway: alevy/simple.cx#1
I was considering porting a project to haskell but I absolutely need UUID primary keys. Is this possible? If not, how can I help?
@nd2s wrote (alevy/simple.cx#2): Is there a way to easily modify the model before INSERT/UPDATE? I need to set created_at and update_at timestamps on every save.
Just playing around with pg-orm for the first time. Created the typical user-post-comments data model, and was surprised with the following: ``` userPosts :: Association User Post userPosts = has...
Instead of having to do runtime checks to see if a Model has been saved, one could infer it from the type signature. ``` newtype NullKey = NullKey newtype DBKey...
Commands on ubuntu 14 m/c: cabal install postgresql-orm -- success ghc-pkg list | grep postgresql-orm -- shows postgresql-orm-0.3.2 git clone https://github.com/alevy/postgresql-orm.git && cd postgresql-orm runhaskell Examples.hs It throws error as,...