logo      
Custom Search

Re: Comparison of database libraries in Scala: RichSQL, SwS, ...

Date: December 29, 2006
From: Lex Spoon <lex@xxxxxxxxxxxxx>

References: <F418C1909C57A14E9456C8BEA8856345017DA6ED@xxxxxxxxxxxxxxxxxx>

"Judson, Ross" <rjudson@xxxxxxxxxxxxxxxxxx> writes:
> RichSQL was written as a demonstration of techniques in Scala; dbc is a
> full-fledge library and environment for handling relational information.
> I'd like to see dbc extended beyond JDBC into simply providing a way of
> dealing with tabled/relational data in Scala.
> 
> RichSQL uses a good bit of Scala's bag of tricks to make selects and
> inserts very simple. It also relies on left-to-right execution of
> statement parts, which is maybe not such a hot thing to do. I can't
> remember if the Scala spec actually requires this or not.

You can rely on the order if you want.  The spec says, in section 6.5:

  Evaluation of f (e1, ..., en) usually entails evaluation of f
  and e1, ..., en in that order.


-Lex





Custom Search
home | non blog view