Buckets:

download
raw
559 Bytes
# SPDX-FileCopyrightText: 2023-present MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from sqlalchemy.ext.asyncio import (
AsyncSession,
async_sessionmaker,
create_async_engine,
)
from syncmaster.server.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:
559 Bytes
·
Xet hash:
9c37070fbb7e37de9651f6b96d5bb88434bf35da34fc28d442c758f118bc4466

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