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

87

1.19x
Quality

Pending

Does it follow best practices?

Impact

87%

1.19x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-4/

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

tile.json