How do I run a comand line scala script that uses Play Framework app database?
问题 I have this on my app/scripts folder (I created this folder inside app/ ). I'm not sure how I can properly set the classpath here, thus I didn't even run this to know if it will actually connect to the database. How can I run this in a clean way from the command line? package scripts import scala.collection.TraversableOnce import scala.collection.generic.SeqForwarder import scala.io.Source import scala.slick.jdbc.{StaticQuery => Q} import scala.slick.session.Session import scala.slick.session