SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
Overall
score
85%
{
"context": "This criteria evaluates how well the engineer uses SQLModel's inspection and metadata capabilities to introspect database model structure, retrieve column information, and access table metadata.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses inspect()",
"description": "Uses SQLModel's inspect() or SQLAlchemy's inspect() function to introspect the model class structure rather than manually accessing attributes",
"max_score": 30
},
{
"name": "Accesses column information",
"description": "Correctly accesses column information through the inspection API (e.g., via columns attribute or mapper.columns) to retrieve column names and properties",
"max_score": 25
},
{
"name": "Retrieves column types",
"description": "Uses the appropriate API to retrieve SQL type information from columns (e.g., accessing column.type or using type representation methods)",
"max_score": 20
},
{
"name": "Identifies primary keys",
"description": "Uses the inspection API to identify primary key columns (e.g., checking column.primary_key attribute or accessing mapper.primary_key)",
"max_score": 15
},
{
"name": "Accesses table metadata",
"description": "Uses the metadata or __tablename__ attribute to retrieve the table name associated with the model",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-sqlmodeldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10