Re: [Haskell-cafe] Re: Haskell EDSL to generate SQL?

2009-04-06 Thread Jeremy Shaw
At Sun, 05 Apr 2009 14:32:21 +0200,
GüŸnther Schmidt wrote:

 What is the best resource to look for more detail examples?

No idea. I have not used it in years. And, last I checked, it is far
from perfect. For example, I believe that field names must be unique
across all tables.

Also, there was a project, coddfish that may be of interest.

http://wiki.di.uminho.pt/twiki/bin/view/Research/PURe/CoddFish

I think it provides a more direct mapping to SQL.

- jeremy
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Haskell EDSL to generate SQL?

2009-04-05 Thread GüŸnther Schmidt

Hi Jeremy,

apologies for my initial response, that was definately premature. I had 
a second look and am quite impressed now.


What is the best resource to look for more detail examples?

Günther


Jeremy Shaw schrieb:

At Sat, 04 Apr 2009 15:40:56 +0200,
GüŸnther Schmidt wrote:

But I hope to be able to use an DSL from which I can automatically 
generate SQL-Strings instead of writing the SQL statements literally.


Has anyone else taken a similar approach?


HaskellDB has an DSL for generating SQL strings. Though, it is not a
straightforward mapping. The haskellDB DSL provides you with
relational algebra operators that you use to build your query. 


 - jeremy



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Haskell EDSL to generate SQL?

2009-04-04 Thread GüŸnther Schmidt

Hi Jeremy,

thanks for that.

I had come across it before but I think I'd prefer a more light-weight 
approach.


Günther

Jeremy Shaw schrieb:
 At Sat, 04 Apr 2009 15:40:56 +0200,
 GüŸnther Schmidt wrote:

 But I hope to be able to use an DSL from which I can automatically
 generate SQL-Strings instead of writing the SQL statements literally.

 Has anyone else taken a similar approach?

 HaskellDB has an DSL for generating SQL strings. Though, it is not a
 straightforward mapping. The haskellDB DSL provides you with
 relational algebra operators that you use to build your query.

  - jeremy


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe