Skip to content
feiben edited this page Sep 23, 2016 · 5 revisions

LunarDB.getStatus() returns the current status of this db instance. The enumeration of status is:

onWaiting: database is waiting for any API invocation, which means the database is available;  
		onCreating, is creating an new database, specified by creation.conf;  
		onClosing, database is closing now;  
		onOpening, database is opening now;  
		closed, database has been closed;  
		onReading, database is in reading records, or executing a query;   
		onWriting, database is writing records, or building index, or any other job of writing;  
		onDeleting,  database is deleting some records now;  
		onUpdating,  database is updating some records now;  
		onRecovery,  database recovery from possible damages; 
  

Clone this wiki locally