TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Squeryl: A concise, type-safe Scala ORM and DSL

41 pointsby stephenjudkinsover 14 years ago

4 comments

vogover 14 years ago
This seems to be a very promising and well designed project. However, there one part that puzzles me. On the one hand,<p><i>&#62; SQL's declarativeness is preserved, not encapsulated in a lower level API that requires imperative and procedural code to get things done.</i><p>but on the other hand<p><i>&#62; A significant part of optimizing a database abstraction layer is to choose for every situation the right balance between fine and large grained retrieval, and the optimal mix of laziness and eagerness.</i><p>Why is that even relevant? If the possibilities of SQL are preserved, why can't you simply let the database aggregate your data and make it return exactly what you need? ... which will be what you'll send to the user, after some formatting/templating, so the really wanted result can't be too big.<p>In other words, the difference between fine and coarse grained retrieval only matters if you have a big intermediate result that you have to process aside from the database because your ORM doesn't allow you to do that within the database. Since Squeryl claims to be different in that regard, why does the retrieval strategy even matter?
评论 #1730005 未加载
评论 #1730117 未加载
jseanover 14 years ago
Squeryl is really awesome as far as scala-orms go. I've used it in a couple of hobby projects and currently am using it in a bigger, and hopefully revenue bringing, project (a mix consisting of scala, wicket, squeryl and mysql. So far so good!)<p>Maxime, the guy behind squeryl is also very very helpful. I've posted a few questions on squeryl's group and have never waited more than a day for a reply.<p>Perhaps it's because squeryl still is relatively unknown, but still, this goes to show that this project at least has a Human Interface which is always nice.<p>Lastly, hopefully squeryl will get some more attention now that Lift has given it some official attention.<p>Anyways, yeah. Squeryl. Cheers.
mhansenover 14 years ago
Needs a code example on the front page.
评论 #1730672 未加载
rueover 14 years ago
Seems decent enough, I should reintroduce to Scala.<p>The website does not degrade well, though: no JS == no code listings.
评论 #1730000 未加载