I use something like the following command to generate code from my database schema.

DBDirect-hdbc-postgresql Acme.DB <password> "host=<host> dbname=<db-name>"

The DBDirect-hdbc-postgresql executable is generated by the haskelldb-hdbc-postgresql package.


On Mon, Mar 11, 2013 at 10:45 PM, Justin Bailey <jgbailey@gmail.com> wrote:
Can anyone help Gunther? 

> I'd like to save myself some typing with the database layout but would like to refrain from 
> Template Haskell. Could you point me to an example on how to use DBDirect for it?

---------- Forwarded message ----------
From: Günther Schmidt <gue.schmidt@web.de>
Date: Mon, Mar 11, 2013 at 2:21 PM
Subject: Haskelldb DBDirect
To: Justin Bailey <jgbailey@gmail.com>


Hello Justin,

you might remember even though I haven't written you in quite a while, a couple of years actually but I'm beginning to use Haskell again for writing apps. Since Haskell now has support for writing web-based applications it's becoming quite an option.

Naturally I'd like to use HaskellDB for my persistence layer and I'm glad to see that you have not abandoned it.

I'd like to save myself some typing with the database layout but would like to refrain from Template Haskell. Could you point me to an example on how to use DBDirect for it?


Best regards

Günther



------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Haskelldb-users mailing list
Haskelldb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/haskelldb-users