There are requirement where you want to know which database you are connected at particular instance.
1. Write a method call getConnectionDb() in application module.
You can use this for various logging related or for any purpose.
No comments:
Post a Comment