Apr-19-2017, 04:29 PM
I'm pretty new to python programming & mongo aswell...how can i get the list of databases from a mongo instance into a variable using pymongo?
thank you.
thank you.
how to get the list of databases to a variable using pymongo?
|
Apr-19-2017, 04:29 PM
I'm pretty new to python programming & mongo aswell...how can i get the list of databases from a mongo instance into a variable using pymongo?
thank you.
Aug-10-2017, 08:01 PM
After you have a connection, use connection.database_names:
https://api.mongodb.com/python/current/a...base_names |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Getting error when running "MINUS" between 2 databases | marlonbown | 4 | 2,260 |
Nov-10-2022, 05:49 AM Last Post: deanhystad |
|
websockets and pymongo exception | sankar2000 | 0 | 1,845 |
Oct-07-2022, 09:52 PM Last Post: sankar2000 |
|
PyMongo error | bagou450 | 0 | 1,320 |
Aug-04-2022, 08:27 AM Last Post: bagou450 |
|
[Solved]Help comparing 2 databases | Extra | 2 | 1,894 |
Jul-15-2022, 11:12 PM Last Post: Extra |
|
Split string using variable found in a list | japo85 | 2 | 2,169 |
Jul-11-2022, 08:52 AM Last Post: japo85 |
|
![]() |
MongoDB cannot connect - pymongo | speedev | 1 | 2,674 |
Aug-21-2021, 01:35 PM Last Post: ndc85430 |
An IF statement with a List variable | dedesssse | 3 | 22,761 |
Jul-08-2021, 05:58 PM Last Post: perfringo |
|
pymongo wildcard query issue | MikeAW2010 | 2 | 5,285 |
Jul-06-2021, 09:25 AM Last Post: swag |
|
Create variable and list dynamically | quest_ | 12 | 6,549 |
Jan-26-2021, 07:14 PM Last Post: quest_ |
|
![]() |
Matching variable to a list index | Gilush | 17 | 8,650 |
Nov-30-2020, 01:06 AM Last Post: Larz60+ |