0
다음 DB 스크립트와
:이 방법스칼라 Anorm 선택 쿼리
def getTask(hash: Int): String = DB.withConnection { implicit c =>
val result = SQL(
"""
select count(*) as url from HashToUrl where hash={hash}
"""
).apply().head
val url = result[String]("url")
url
}