I wanted to connect multiple databases. I tried to go through the https://github.com/tiangolo/fastapi/issues/2592 but was unable to understand the approach. How can I get data using this function
`@router.get('/')
def get(self, session: Session = Depends(get_session)):
pass`
I'm only fetch data from one database using this function:
@router.get('/')
def read_users(db:Session = Depends(get_session)):
data = db.query(ModelDB1).all()
return data
I was also curious as to how will I be able to fetch data from the database and also update the values in the database. It will be great if anyone can help me out, also are there any other examples or methods which would do the job?