Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- awsMySQL = {
- profile = "slick.jdbc.MySQLProfile$"
- dataSourceClass = "slick.jdbc.DatabaseUrlDataSource"
- properties = {
- url = "jdbc:mysql://vonohlendevsdefault.cn17tbad2awy.eu-central-1.rds.amazonaws.com"
- user = "foo"
- password = "bar"
- driver = com.mysql.cj.jdbc.Driver
- }
- connectionPool = disabled
- keepAliveConnection = true
- }
- val db = Database.forConfig("awsMySQL")
- val CustomersDAO = TableQuery[Customers]
- val q1 = for (c <- CustomersDAO) yield c.name
- val a = q1.result
- val f = db.run(a)
- Await.result(f, Duration.Inf)
Add Comment
Please, Sign In to add comment