Buckets:

download
raw
403 Bytes
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from .settings import settings
DB_URL = settings.db_url
engine = create_engine(
DB_URL, connect_args={"check_same_thread": False}
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
# Dependency
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()

Xet Storage Details

Size:
403 Bytes
·
Xet hash:
7bccadaf7c54da19de8c9478aee006bbc5a35d9e32f6fc7305e1417b8e46119b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.