oh-my-words / database /__init__.py
linxy's picture
init
bb48ea5
raw
history blame contribute delete
205 Bytes
from .database import SessionLocal, engine, Base
from .schema import *
from .operation import *
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()