INNER CODE UNIT · Python

columns

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

    def columns(self) -> list[Column]:
        return [
            col
            for col in self.__table__.columns  # type: ignore
            if (not col.primary_key) and (col.name != "created_at")
        ]

    @classmethod
    async def add_all(
        cls: Type[TableGeneric],
        *args: dict,
        autocommit: bool = False,
        refresh: bool = False,
        session: AsyncSession | None = None,
    ) -> list[TableGeneric]:
        return await db.add_all(
            cls,
            *args,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…