INNER CODE UNIT · Python

add_one

c0sogi/LLMChat · app/database/schemas/__init__.py:59

    async def add_one(
        cls: Type[TableGeneric],
        autocommit: bool = False,
        refresh: bool = False,
        session: AsyncSession | None = None,
        **kwargs: Any,
    ) -> TableGeneric:
        return await db.add(
            cls,
            autocommit=autocommit,
            refresh=refresh,
            session=session,
            **kwargs,
        )

    @classmethod
    async def update_filtered(
        cls: Type[TableGeneric],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…