SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
85
Pending
Does it follow best practices?
Impact
85%
1.00xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how effectively the engineer uses SQLModel's query building capabilities, specifically the select() function and its methods for filtering, sorting, and pagination. The focus is on proper usage of SQLModel's query API rather than general coding practices.",
"type": "weighted_checklist",
"checklist": [
{
"name": "select() usage",
"description": "Uses select() function to create query statements for all query functions (e.g., select(Product))",
"max_score": 15
},
{
"name": "where() filtering",
"description": "Uses .where() method with comparison operators on Product model fields for filtering (e.g., Product.price > min_price, Product.stock_quantity < threshold)",
"max_score": 20
},
{
"name": "Multiple where() conditions",
"description": "Uses multiple .where() clauses or multiple arguments to where() for AND conditions in get_filtered_products()",
"max_score": 10
},
{
"name": "or_() for categories",
"description": "Uses or_() function or .in_() method for OR logic when filtering by multiple categories in get_products_by_categories()",
"max_score": 15
},
{
"name": "order_by() sorting",
"description": "Uses .order_by() method with Product model fields for sorting, and desc() function when descending=True in get_products_sorted_by_price()",
"max_score": 15
},
{
"name": "offset() pagination",
"description": "Uses .offset() method to skip records for pagination in get_paginated_products()",
"max_score": 10
},
{
"name": "limit() pagination",
"description": "Uses .limit() method to restrict number of results for pagination in get_paginated_products()",
"max_score": 10
},
{
"name": "session.exec() execution",
"description": "Uses session.exec() method to execute select statements and retrieves results with .all() or similar methods",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10