Skip to content

DBTaskCenter Or Multiple DBInstance

feiben edited this page Sep 23, 2016 · 1 revision

DBTaskCenter internally calls LunarDB.getInstance() to create a global singleton of LunarDB. And one db instance can only open one database. If user wants to open multiple database simultaneously, he must have multiple db instances with each of them constructed directly by new:

String db_path = "/home/user/DBTest/DB_I/";  
LunarDB db_i = new LunarDB();  
db_i.openDB(db_path );  
...  

Clone this wiki locally