From: Artyom S. <art...@gm...> - 2009-05-27 05:44:58
|
2009/5/26 Justin Bailey <jgb...@gm...>: > Can you be more specific? How are they incompatible? At the moment, one has to provide a DB specification in terms of Database.HaskellDB.DBSpec, and the boilerplate code is generated automagically with DB/Direct. HaskellDB-TH on the other hand provides programmer with TH-specific functions while I think it would be much better if these functions operated over DB/Direct specifications: you give it a specification to get your boilerplate, as simple as that. The opportunity to have database schema as a first-class value is appealing. I would have already added that functionality to HaskellDB, but unfortunately, I'm not familiar with Template Haskell yet. >> In addition to that, how hard is it to add primary keys, foreign keys >> and indices >> annotations to HaskellDB? >> > > There isn't support for that at the moment, but it's kind of outside > the domain too. I would suggest layering that information on top of > your schema through additional types or classes. What did you have in > mind? I wanted to create a database table exclusively through HaskellDB; don't tell me I'm mad, please. :) Cheers, Artyom Shalkhakov. |