1 `someQuery.selectStatement``
2 How about
// somewhere central
def getDataSourceForUser(user: User) = /* <- your user to DS mapping here */
def db(user: User) = Database.fromDataSource(getDataSourceForUser(user))
// in your query code:
db(currentUser).withSession{ implicit session =>
// <- your queries here
}
}