I am using Slick 3.x with Play 2.3.9 without play-slick because play-slick does not support this combination. I read
And it mentioned that database connection must be closed explicitly i.e.
def delete(id: Long): Future[Int] =
try db.run(filterQuery(id).delete)
finally db.close
Do I have to close the connection explicitly as mentioned in the article? Will db.close
closes the connection and pool? Because, OTH, the examples in Slick 3.0 document didn't close the connection explicitly. I could have misunderstood the document. Thanks