java - Latest method for getting "Sister Database" in mongodb -


i've been using com.mongodb.db in previous projects upto now. since, getdb() method deprecated , use getdatabase() instead. need change db class mongodatabase class work(i guess?). problem i'm facing class is, there no getsisterdabatase() method found in class. know how access "sibling database" using mongodatabse class? in advance!

have checked db.getsiblingdb(name) ? please specify mongodb version, jdk version , driver. using driver mongodb driver 3+ , has getsisterdb(name).


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -