StarsDB: add function to get all current instances
This commit is contained in:
@@ -8,7 +8,11 @@ class StarDBError(Enum):
|
||||
class StarDB():
|
||||
__instances = list()
|
||||
__dbNames = list()
|
||||
|
||||
|
||||
@staticmethod
|
||||
def getAllInstances():
|
||||
return StarDB.__instances
|
||||
|
||||
@staticmethod
|
||||
def getInstance(dbName: str):
|
||||
if(dbName in StarDB.__dbNames):
|
||||
|
||||
Reference in New Issue
Block a user