I have created two databases in BaseX with the following command
session.execute("create db Mydb");
session.execute("create db Mydb2");
I have inserted some data in them.
But when I am trying to receive data from the first it does not return anything.
At the beginning I had only Mydb and I managed to retrieve data without problems. But when I created the second db Mydb2 then it does not return anything.
I open the BaseX database in java with the follwing commands
session = new BaseXClient("localhost", 1984, "admin","admin");
but it does not work.
For example I use the follwing command
String xquery_check_if_id_exists="xquery exists (root/node1[node1ID='2'])";
And says that there are not data inside. But there are data inside I know it. Before creating the second db I retrieved the data.
How can I check which database is opened?