Wednesday, April 11, 2012

Re: Support for multiple local databases

sounds reasonable, would you mind logging this in the feature tracker?


Thanks!

Rob


On Tue, Apr 3, 2012 at 12:41 PM, Miles Chaston <mchaston@google.com> wrote:
Hello,

I am trying to use a local database (via Cloud SQL) from the local development AppEngine container.
I have several databases that I need to connect to, but the "magic command-line parameter" of -Drdbms.url only allows a single URL.
Would it be possible to have some form of URL aliasing such as...
-Drdbms.instance_name/db1.server=local \
-Drdbms.instance_name/db1.driver=com.mysql.jdbc.Driver \
-Drdbms.instance_name/db1.url=jdbc:mysql://localhost:3306/my_db1 \
-Drdbms.instance_name/db2.server=local \
-Drdbms.instance_name/db2.driver=com.mysql.jdbc.Driver \
-Drdbms.instance_name/db2.url=jdbc:mysql://localhost:3306/my_db2
... where the string between "rdbms." and ".server" / ".driver" / ".class" is the URL suffix used when you do getConnection?

What do you think?

Miles

No comments:

Post a Comment