سؤال

Currently anorm uses the parameters specified in application.config file of Play to access to a database (user, password, url).

In my case, I need to specify the connection url during the runtime.

Is there a pretty trick to do this? How can I do this?

thanks in advance

هل كانت مفيدة؟

المحلول

Did you try to implement a delegate to the anorm driver? See this question for reference: Encrypting db password in application.conf for Play 2.0/anorm

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top