ように私はこのようなコードを持っている:Anorm GETのInt結果
def getUserId(email: String) = DB.withConnection { implicit con =>
SQL("select userId from signUp where email = {email}").
on('email -> email).as(SqlParser.str("access_token").singleOpt)
}
それは結果としてString
なります。
どうすれば結果をInt
とすることができますか?