pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
295 B
8 lines
295 B
from app.core import config
|
|
from sqlalchemy import create_engine
|
|
from sqlalchemy.orm import scoped_session, sessionmaker
|
|
|
|
engine = create_engine(config.SQLALCHEMY_DATABASE_URI, convert_unicode=True)
|
|
db_session = scoped_session(
|
|
sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
|
)
|
|
|