You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jwt_payload (dict): Dictionary containing databaseAddress, username and password strings
34
34
35
35
Returns:
36
-
list<strings>: List of schemas names
36
+
list<strings>: List of schemas names in alphabetical order excluding information_schema
37
37
"""
38
38
@staticmethod
39
39
deflist_schemas(jwt_payload):
40
40
DJConnector.set_datajoint_config(jwt_payload)
41
41
42
42
# Attempt to connect return true if successful, false is failed
43
-
schemas=dj.list_schemas()
44
-
returnschemas
43
+
return [row[0] forrowindj.conn().query('SELECT SCHEMA_NAME FROM information_schema.schemata WHERE SCHEMA_NAME != "information_schema" ORDER BY SCHEMA_NAME')]
0 commit comments