yanb514 / i24_database_api

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Needs method to list all collections #3

Closed DerekGloudemans closed 1 year ago

DerekGloudemans commented 2 years ago

Essentially [col["name"] for col in list(gtd.db.list_collections())] but this is quite clunky and requires having a specific db client targeting a specific collection.

In general it might be nice to add some basic database management that doesn't require targeting a specific collection

yanb514 commented 1 year ago

added a basic way to connect to the client (dbc = DBClient(**db_param)) such that you can connect to any arbitrary databases by dbc.client[db_name].list_collection_names()