A slightly nicer interface to Postgres over node-libpq providing both sync and async operations
88
Quality
Pending
Does it follow best practices?
Impact
88%
1.20xAverage score across 10 eval scenarios
Build a Node.js application that connects to a PostgreSQL server in replication mode to monitor replication status and slot information. The application should establish a special connection that allows querying replication-specific system views.
Create a connection that enables replication mode. The connection should:
Implement functionality to query and display replication information:
pg_replication_slots system view to retrieve active replication slotsDisplay the retrieved information in a clear, structured format. For each replication slot, show all relevant fields.
PostgreSQL client for Node.js providing connection management and query execution.
File: replication.test.js
Test Description: Verify that the connection can be established with replication mode enabled.
Expected Behavior:
File: replication.test.js
Test Description: Verify that the application can query and retrieve replication slot information.
Expected Behavior:
pg_replication_slotsFile: replication.test.js
Test Description: Verify proper handling when no replication slots are configured.
Expected Behavior:
Install with Tessl CLI
npx tessl i tessl/npm-pg-nativeevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10