Full-featured ORM library for Golang with associations, hooks, transactions, migrations, and developer-friendly chainable API
Overall
score
81%
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/golang-gorm-io--gormdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10