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 built-in model structure and timestamp management features. The focus is on proper usage of gorm.Model (or equivalent fields), automatic timestamp handling, and soft delete functionality.",
"type": "weighted_checklist",
"checklist": [
{
"name": "gorm.Model Usage",
"description": "Uses gorm.Model embedded struct in the User struct, which automatically provides ID (uint), CreatedAt (time.Time), UpdatedAt (time.Time), and DeletedAt (gorm.DeletedAt) fields.",
"max_score": 30
},
{
"name": "Database Connection",
"description": "Properly accepts and uses *gorm.DB in the UserManager struct and NewUserManager constructor function.",
"max_score": 10
},
{
"name": "Create Operation",
"description": "Uses GORM's Create() method to insert a new user, which automatically populates CreatedAt and UpdatedAt timestamps.",
"max_score": 15
},
{
"name": "Update Operation",
"description": "Uses GORM's Save() or Updates() method to update user information, which automatically updates the UpdatedAt timestamp.",
"max_score": 15
},
{
"name": "Soft Delete",
"description": "Uses GORM's Delete() method for soft deletion, which automatically sets the DeletedAt field instead of removing the record from the database.",
"max_score": 15
},
{
"name": "Query with Auto-Filter",
"description": "Uses GORM's First(), Find(), or similar query methods that automatically exclude soft-deleted records (those with non-null DeletedAt values) without requiring manual WHERE clauses.",
"max_score": 15
}
]
}