Vishweswar53
commited on
Commit
•
a1316e3
1
Parent(s):
a01f0a1
Update main.py
Browse files
main.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import pymongo
|
2 |
|
3 |
# Provide the mongodb localhost url to connect python to mongodb.
|
4 |
-
client = pymongo.MongoClient("mongodb://localhost:
|
5 |
|
6 |
# Database Name
|
7 |
dataBase = client["neurolabDB"]
|
@@ -22,4 +22,4 @@ all_record = collection.find()
|
|
22 |
|
23 |
# Printing all records present in the collection
|
24 |
for idx, record in enumerate(all_record):
|
25 |
-
print(f"{idx}: {record}")
|
|
|
1 |
import pymongo
|
2 |
|
3 |
# Provide the mongodb localhost url to connect python to mongodb.
|
4 |
+
client = pymongo.MongoClient("mongodb://localhost:27017/neurolabDB")
|
5 |
|
6 |
# Database Name
|
7 |
dataBase = client["neurolabDB"]
|
|
|
22 |
|
23 |
# Printing all records present in the collection
|
24 |
for idx, record in enumerate(all_record):
|
25 |
+
print(f"{idx}: {record}")
|