or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates the engineer's ability to use the pg package's replication connection mode feature. The focus is on correctly configuring the connection with the replication parameter and successfully executing replication-specific queries.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Replication parameter usage",
      "description": "Client or connection is configured with the 'replication' parameter set to enable replication mode (e.g., { replication: true } or replication: 'database')",
      "max_score": 30
    },
    {
      "name": "Client instantiation",
      "description": "Uses the pg.Client class or Pool class to create a database connection object",
      "max_score": 15
    },
    {
      "name": "Connection establishment",
      "description": "Calls the connect() method or uses pool.connect() to establish the database connection",
      "max_score": 15
    },
    {
      "name": "Query execution",
      "description": "Uses the query() method to execute SQL statements against the PostgreSQL server",
      "max_score": 15
    },
    {
      "name": "Result handling",
      "description": "Accesses query results correctly through the result object's rows property or other appropriate result properties",
      "max_score": 15
    },
    {
      "name": "Connection cleanup",
      "description": "Calls end() method to properly close the client connection or releases the pooled client",
      "max_score": 10
    }
  ]
}