- 授权协议: BSD
- 开发语言: Scala
- 操作系统: 跨平台
- 软件首页: http://slick.typesafe.com/
- 软件文档: http://slick.typesafe.com/docs/
软件介绍
Slick 是 TypeSafe 推出的 Scala 数据库访问库。开发者可以使用 Scala 语言风格来编写数据查询,而不是用 SQL,示例代码:
object Coffees extends Table[(String, Int, Double)]("COFFEES") { def name = column[String]("COF_NAME", O.PrimaryKey) def supID = column[Int]("SUP_ID") def price = column[Double]("PRICE") def * = name ~ supID ~ price } Coffees.insertAll( ("Colombian", 101, 7.99), ("Colombian_Decaf", 101, 8.99), ("French_Roast_Decaf", 49, 9.99) ) val q = for { c <- Coffees if c.supID === 101 // ^ comparing Rep[Int] to Rep[Int]! } yield (c.name, c.price) println(q.selectStatement) q.foreach { case (n, p) => println(n + ": " + p) }
Defensive Design for the Web
37signals、Matthew Linderman、Jason Fried / New Riders / 2004-3-2 / GBP 18.99
Let's admit it: Things will go wrong online. No matter how carefully you design a site, no matter how much testing you do, customers still encounter problems. So how do you handle these inevitable bre......一起来看看 《Defensive Design for the Web》 这本书的介绍吧!