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
Post a Comment