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

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -