Buckets:

download
raw
557 Bytes
# SPDX-FileCopyrightText: 2024-present MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from sqlalchemy.ext.asyncio import (
AsyncSession,
async_sessionmaker,
create_async_engine,
)
from data_rentgen.db.settings import DatabaseSettings
def create_session_factory(settings: DatabaseSettings) -> async_sessionmaker[AsyncSession]:
engine = create_async_engine(url=str(settings.url), **settings.model_dump(exclude={"url"}))
return async_sessionmaker(
bind=engine,
class_=AsyncSession,
expire_on_commit=False,
)

Xet Storage Details

Size:
557 Bytes
·
Xet hash:
2d81c67ee726c085afd0bb467629c9b2c58727c494bf727e6372037d99eb6a08

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