News for hackers. Stuff that matters.
Re:Akka, Spray and Play to come Together by TylerE on Friday October 18, 2013 @10:24AM (#6571513)
It's a lot of ceremony for not a lot of convenience.

See: http://slick.typesafe.com/doc/1.0.1/lifted-embedding.html#in... and notice how much is involved in doing a simple insert into a table with a primary key.

Re:Akka, Spray and Play to come Together by saryant on Friday October 18, 2013 @11:01AM (#6571727)

  Users.forInsert insert User(None, "Christopher", "Vogt")
Personally, I don't find that to be a lot of ceremony. Now, Slick definitely still has some problems and requires too much boilerplate, I'll certainly agree with that but I don't think this is one of those cases (though it could be improved).
Re:Akka, Spray and Play to come Together by TylerE on Friday October 18, 2013 @11:10AM (#6571788)
THe ceremony is creating the "for insert" facade. To me the logical thing to do would be for Slick to have an "AutoInc Int/Long" type that is implicitly convertable from Option, so that you could just do a normal insert and the the None value just causes the id column to be omitted.
Re:Akka, Spray and Play to come Together by trailfox on Friday October 18, 2013 @10:36AM (#6571583)
It also supports raw SQL...
Re:Akka, Spray and Play to come Together by terhechte on Friday October 18, 2013 @10:50AM (#6571663)
That goes beyond what it was created for. If you need sql to do anything useful, you can just as well not use a ORM.