7 lines
137 B
Python
7 lines
137 B
Python
from sqlmodel import Session
|
|
from database import engine
|
|
|
|
|
|
def get_session():
|
|
with Session(engine) as session:
|
|
yield session
|