I wonder where I can find the exceptions raised by such a code:
def readFromDB: String = {
db_sqlite_xml.withSession {
implicit db: Session =>
xmlQuery.first.text
}
}
I can't find it in the slick scaladoc (http://slick.typesafe.com/doc/2.0.1/api/#package); I searched the method "first" in the javadoc's tableQuery class, but without any success.
thanks.
olivier
ps : here is my answer, it's working :
def readFromDB: String = {
db_sqlite_xml.withSession {
implicit db: Session =>
xmlQuery.firstOption.map(u=>u.text).getOrElse("")
}
}
}
thanks for the answer, it helped me.