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-5/

{
  "context": "This criteria evaluates how effectively the engineer uses the pg (node-postgres) package's connection string parsing capabilities. The focus is on utilizing pg-connection-string or pg's built-in connection configuration parsing to handle various connection string formats.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses pg parsing",
      "description": "Uses pg's connection string parsing functionality (e.g., pg-connection-string's parse() function or pg.Client/pg.Pool constructor's built-in parsing) rather than implementing custom parsing logic",
      "max_score": 30
    },
    {
      "name": "Standard URL parsing",
      "description": "Correctly handles standard PostgreSQL connection URLs (postgresql:// and postgres:// protocols) with all components (user, password, host, port, database) by leveraging pg's URL parsing",
      "max_score": 20
    },
    {
      "name": "Query parameter handling",
      "description": "Correctly extracts query parameters from connection strings (e.g., sslmode, application_name, sslcert, sslkey) using pg's parameter parsing capabilities",
      "max_score": 20
    },
    {
      "name": "Unix socket support",
      "description": "Correctly handles Unix domain socket connection strings (both space-separated format and socket:// protocol) using pg's socket path detection",
      "max_score": 15
    },
    {
      "name": "URL decoding",
      "description": "Correctly handles URL-encoded characters in connection strings (particularly in passwords) by utilizing pg's built-in URL decoding",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-pg-native

tile.json