CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/golang-gorm-io--gorm

tessl install tessl/golang-gorm-io--gorm@1.31.0

Full-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%

rubric.jsonevals/scenario-7/

{
  "context": "This evaluation assesses how well the engineer uses GORM's callback registration and ordering system to implement automatic audit logging. The focus is on proper use of callback functions, callback registration methods, and understanding callback execution timing.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Callback Registration",
      "description": "Uses db.Callback() to access the callback processor and registers custom callbacks using Register() method for both Create and Update operations",
      "max_score": 30
    },
    {
      "name": "Callback Timing",
      "description": "Registers callbacks with 'After' timing (e.g., 'gorm:after_create', 'gorm:after_update') to ensure audit logs are created after the main operation completes successfully",
      "max_score": 25
    },
    {
      "name": "Callback Function",
      "description": "Implements callback functions that accept *gorm.DB parameter and properly extract model data using db.Statement to populate AuditLog records",
      "max_score": 25
    },
    {
      "name": "Query Implementation",
      "description": "Uses GORM query methods (Where, Order, Find) to retrieve audit logs filtered by EntityID and ordered by Timestamp descending",
      "max_score": 20
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
golangpkg:golang/gorm.io/gorm@v1.31.1
tile.json