News for hackers. Stuff that matters.
Re:Slick: a modern database query and access library for Scala by wheaties on Tuesday August 07, 2012 @09:45PM (#4353438)
Yes and no. I'm building a library that allows you to at least pull in the database structure and have the code auto-generated so that your code agrees with the schema. You can see it here: http://wheaties.github.com/Squealer/

After that, if your production schema is that different from your development schema that auto-generated code can't help, then you've got more problems than that.

Re:Slick: a modern database query and access library for Scala by boyter on Tuesday August 07, 2012 @10:13PM (#4353512)
Looks good.

I know that issues where the schema is different are always going to be a problem (nothing can save you there unless you want auto generated entities every time) but I can live with that.

How are you dealing with issues like the one I found the other day.

A view was created in MySQL which selected from a table with a column compressed with the compress function and was uncompressed in the view.

IE

select id,uncompress(content) as content from stuff;

The above looks fine, but unless you cast the content to a char most ORM's have issues working out what it is, yet it looks fine in your standard mysql command line query. It's an unusual case, but I would like to see the autogenerated code produce a binary cast so I can explicitly see the error when I generate rather then at runtime.

Re:Slick: a modern database query and access library for Scala by wheaties on Tuesday August 07, 2012 @10:18PM (#4353526)
That, unforunately, I can't help with. Like any SQL DSL I've worked with, there's a few features that still aren't fleshed out... yet. I have complete faith they will flesh them out if prompted by the community. After that, you'll have to use pure SQL and cross your fingers.
Re:Slick: a modern database query and access library for Scala by boyter on Wednesday August 08, 2012 @02:28AM (#4354245)
Oh well. If its decent enough I can live with this single issue as I catch it pretty easily though integration tests.