point-of-sales/py-kivy/pos_system/database.py

9 lines
137 B
Python

from pymongo import MongoClient
client = MongoClient("mongodb://localhost:27017")
db = client["pos_system"]
def get_db():
return db