tessl install tessl/golang-gorm-io--gorm@1.31.0Full-featured ORM library for Golang with associations, hooks, transactions, migrations, and developer-friendly chainable API
Agent Success
Agent success rate when using this tile
81%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.13x
Baseline
Agent success rate without this tile
72%
{
"context": "This criteria evaluates how well the engineer uses GORM's SQL generation capabilities to produce SQL statements without executing them. The focus is on proper usage of GORM's ToSQL method and DryRun mode for query inspection and debugging.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ToSQL method usage",
"description": "Uses the ToSQL() method to generate SQL statements from GORM query chains without executing them. The method should be called on a properly configured *gorm.DB instance.",
"max_score": 40
},
{
"name": "Parameter extraction",
"description": "Correctly extracts and returns the parameter values (vars) that would be bound to the SQL statement. Parameters should be returned in the order they appear in the SQL.",
"max_score": 25
},
{
"name": "Query chain handling",
"description": "Properly preserves the entire GORM query chain (Where, Order, Limit, Joins, etc.) when generating SQL. All query building methods should be included in the final SQL output.",
"max_score": 20
},
{
"name": "Error handling",
"description": "Handles and returns errors that may occur during SQL generation, such as invalid queries or missing required fields.",
"max_score": 15
}
]
}