Re: [postmodern-devel] single-key object magic

2012-05-09 Thread Marijn Haverbeke
Hello Greg, I'm hesitant to incorporate any 'magic' like this into the core library. It's a matter of aesthetics, but I'm no big fan of this kind of do-what-I-mean API style. I prefer explicitness. If you want to work on a library that does a lot of helpful things under the covers, I think that's

[postmodern-devel] single-key object magic

2012-05-09 Thread Greg Pfeil
I've made a few changes to Postmodern. They both try to do a little magic in the case where a table has a single primary key column. The first change allows you to use a DAO-OBJECT directly as a parameter, rather than pulling out the key field. EG: > (select-dao 'foo (:= 'bar bar)) instead of