_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
It's bigger than Godzilla?
> <398E692F.asc>
Thanks,
Tobias
_______________________________________________
> Database programs, usually, do not just issue isolated SQL statements, but
> implement a processing logic with nested queries and DML statements.
Frequently using cursors or issuing queries from a loop often means
you've missed out on the declarative and set based nature of SQL and
databases.
http://www.sqlservercentral.com/articles/T-SQL/66097/
http://stackoverflow.com/questions/287445/why-do-people-hate-sql-cursors-so-much
Granted, you could still argue that it should be supported, for the
few cases where it actually makes sense.
Isak
both references are very interesting.
If I understand correctly, the DSH approach is to convert Haskell
programs into SQL and run them inside the database. This seems a good
solution when the program objective is to change data in the database
according to some business logic or to preprocess relational data to
create a non-relational temporary resultset which is later used by an
external procedure.
The persistent way, from this perspective, appears to be more
"conventional" - data are obtained from the database to be processed by
an external program and presented on a website, for instance. Similar to
Takusen, the main objective here appears to be compile-time guarantees
on database types. Indeed, in a functional program, the string-based
embedded SQL is the weakest link in the chain. persistent strengthens
this link.