CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-pg-native

A slightly nicer interface to Postgres over node-libpq providing both sync and async operations

88

1.20x

Quality

Pending

Does it follow best practices?

Impact

88%

1.20x

Average score across 10 eval scenarios

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation assesses the engineer's ability to use the pg (node-postgres) package's row format configuration feature. The key capability being tested is the use of the rowMode query option to control whether query results are returned as objects (default) or arrays.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses rowMode option",
      "description": "The solution uses the rowMode query configuration option in pg to specify array format when needed. This can be set in the query config object passed to client.query().",
      "max_score": 40
    },
    {
      "name": "Default object format",
      "description": "For object format queries, the solution relies on pg's default behavior (objects with column names as keys) or explicitly sets rowMode to undefined/omits it, demonstrating understanding that object format is the default.",
      "max_score": 20
    },
    {
      "name": "Array format specification",
      "description": "For array format queries, the solution correctly sets rowMode: 'array' in the query configuration to return rows as arrays instead of objects.",
      "max_score": 30
    },
    {
      "name": "Proper query execution",
      "description": "Uses client.query() method with proper parameterized query syntax (text, values, and optional rowMode config) to execute queries safely and return results.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-pg-native

tile.json