CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/golang-gorm-io--gorm

Full-featured ORM library for Golang with associations, hooks, transactions, migrations, and developer-friendly chainable API

Overall
score

81%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/golang-gorm-io--gorm

tile.json