async def get_by_entity_class_name(
        self, db: AsyncSession, *, entity_class_name: str
    ) -> EntityDefinition:
        """Get an entity definition by its entity class name."""
        result = await db.execute(select(self.model).where(self.model.name == entity_class_name))
        return result.scalar_one_or_none()
Get an entity definition by its entity class name.
backend/airweave/crud/crud_entity_definition.py