{
  "id": "task_libraries:postgres/javascript",
  "path": "/exapedia/javascript-postgres-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript PostgreSQL libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript PostgreSQL libraries connect Node.js and serverless code to a PostgreSQL database and run SQL queries. A client keeps a pool of open connections and sends each query's values as parameters separate from the SQL text. These libraries let apps and backend services read and write relational data without opening a new database connection for every request."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript PostgreSQL libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#node-postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#postgres-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#neon",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pg-promise",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pg-native",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#slonik",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#databases-pg",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#serverless-postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#node-postgres",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "SQL template tag",
            "Managed connection pool",
            "Built-in HTTPS queries"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#node-postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#postgres-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#neon",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pg-promise",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pg-native",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#slonik",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#databases-pg",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#serverless-postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "node-postgres",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/brianc/node-postgres"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pg"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/pg@8.23.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg@8.23.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async () => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\t\tconst { fields, rawQueryConfig: rawQuery, client, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\t\tthis;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', async (span) => {\n\t\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t\t'drizzle.query.name': rawQuery.name,\n\t\t\t\t\t\t'drizzle.query.text': rawQuery.text,\n\t\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t\t});\n\t\t\t\t\treturn this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst result = await tracer.startActiveSpan('drizzle.driver.execute', (span) => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.name': query.name,\n\t\t\t\t\t'drizzle.query.text': query.text,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query.text, params, async () => {\n\t\t\t\t\treturn await client.query(query, params);\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(result.rows)\n\t\t\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/node-postgres/session.ts#L133-L171",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20pg%20PostgreSQL%20clients%20with%20pooled%20queries%20prepared%20parameters%20and%20interactive%20transactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Client } from 'pg';\nconst client = new Client();\nawait client.connect();\nconsole.log((await client.query('SELECT 1 AS one')).rows);\nawait client.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg@8.23.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "postgres-js",
          "name": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/porsager/postgres"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/postgres"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/postgres@4.1.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/postgres@4.1.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async (span) => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tspan?.setAttributes({\n\t\t\t\t'drizzle.query.text': this.queryString,\n\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t});\n\n\t\t\tthis.logger.logQuery(this.queryString, params);\n\n\t\t\tconst { fields, queryString: query, client, joinsNotNullableMap, customResultMapper } = this;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst rows = await tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.text': query,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t}).values();\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(rows)\n\t\t\t\t\t: rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/postgres-js/session.ts#L39-L79",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20postgres%20PostgreSQL%20clients%20with%20pooled%20queries%20prepared%20parameters%20and%20interactive%20transactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import postgres from 'postgres';\nconst sql = postgres();\nconsole.log(await sql`SELECT 1 AS one`);\nawait sql.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/postgres@4.1.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "neon",
          "name": [
            {
              "t": "fact",
              "fact": "F156"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/neondatabase/serverless"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@neondatabase/serverless"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@neondatabase/serverless@1.2.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@neondatabase/serverless@1.2.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\tconst { fields, client, rawQueryConfig: rawQuery, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\tthis;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn await this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t});\n\t\t}\n\n\t\tconst result = await this.queryWithCache(query.text, params, async () => {\n\t\t\treturn await client.query(query, params);\n\t\t});\n\n\t\treturn customResultMapper\n\t\t\t? customResultMapper(result.rows)\n\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/neon-serverless/session.ts#L139-L159",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20%40neondatabase/serverless%20PostgreSQL%20clients%20with%20pooled%20queries%20prepared%20parameters%20and%20interactive%20transactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F156"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { neon } from '@neondatabase/serverless';\nconst sql = neon(process.env.DATABASE_URL);\nconsole.log(await sql`SELECT 1 AS one`);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@neondatabase/serverless@1.2.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pg-promise",
          "name": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vitaly-t/pg-promise"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pg-promise"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/pg-promise@12.8.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F89"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg-promise@12.8.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F171"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import pgPromise from 'pg-promise';\nconst pgp = pgPromise();\nconst db = pgp(process.env.DATABASE_URL);\nconsole.log(await db.one('SELECT 1 AS one'));\npgp.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg-promise@12.8.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "Database.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20pg-promise%20PostgreSQL%20clients%20with%20pooled%20queries%20prepared%20parameters%20and%20interactive%20transactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F171"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pg-native",
          "name": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/brianc/node-postgres"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pg-native"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/pg-native@3.9.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg-native@3.9.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const Client = require('pg-native');\nconst client = new Client();\nclient.connectSync();\nconsole.log(client.querySync('SELECT 1 AS one'));\nclient.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pg-native@3.9.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pg-native%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "slonik",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/gajus/slonik"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/slonik"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/slonik@49.13.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/slonik@49.13.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Sairyss/domain-driven-hexagon",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "public async transaction<T>(handler: () => Promise<T>): Promise<T> {\n    return this.pool.transaction(async (connection) => {\n      this.logger.debug(\n        `[${RequestContextService.getRequestId()}] transaction started`,\n      );\n      if (!RequestContextService.getTransactionConnection()) {\n        RequestContextService.setTransactionConnection(connection);\n      }\n\n      try {\n        const result = await handler();\n        this.logger.debug(\n          `[${RequestContextService.getRequestId()}] transaction committed`,\n        );\n        return result;\n      } catch (e) {\n        this.logger.debug(\n          `[${RequestContextService.getRequestId()}] transaction aborted`,\n        );\n        throw e;\n      } finally {\n        RequestContextService.cleanTransactionConnection();\n      }\n    });\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Sairyss/domain-driven-hexagon/blob/5c2d15a7e2d69e83dfddf28468ee9f30e02c30de/src/libs/db/sql-repository.base.ts#L205-L229",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=slonik%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { createPool, sql } from 'slonik';\nconst pool = await createPool(process.env.DATABASE_URL);\nconsole.log((await pool.query(sql.unsafe`SELECT 1 AS one`)).rows);\nawait pool.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/slonik@49.13.0/dist/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "databases-pg",
          "name": [
            {
              "t": "fact",
              "fact": "F212"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ForbesLindesay/atdatabases"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@databases/pg"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@databases/pg@6.1.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@databases/pg@6.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F212"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/oskardudycz/EventSourcing.NodeJS",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export const getPostgres = (): ConnectionPool => {\n  if (!db) {\n    if (!config.postgres.connectionString) {\n      throw new Error(\n        'Postgres connection string not set. Please define \"DATABASE_URL\" environment variable',\n      );\n    }\n\n    if (!config.postgres.schemaName) {\n      throw new Error(\n        'Postgres schema name string not set. Please define \"DATABASE_SCHEMA\" environment variable',\n      );\n    }\n\n    db = createConnectionPool({\n      connectionString: config.postgres.connectionString,\n      schema: config.postgres.schemaName,\n    });\n  }\n\n  return db;\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/oskardudycz/EventSourcing.NodeJS/blob/0ca156437ca6fed3fa8ac23fc33a8abbfd4699b6/samples/from_crud_to_eventsourcing/src/core/postgres.ts#L14-L35",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40databases/pg%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F212"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import createConnectionPool, { sql } from '@databases/pg';\nconst db = createConnectionPool({ connectionString: process.env.DATABASE_URL });\nconsole.log(await db.query(sql`SELECT 1 AS one`));\nawait db.dispose();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@databases/pg@6.1.0/lib/index.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F217"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "serverless-postgres",
          "name": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/MatteoGioioso/serverless-pg"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/serverless-postgres"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/serverless-postgres@2.1.2/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/serverless-postgres@2.1.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F229"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/EqualifyEverything/equalify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export const migrateStaleBlockers = async () => {\n    const body = (event.body as any) || {};\n    const phase: string = body.phase;\n    const auditId: string | undefined = body.auditId;\n    const dryRun: boolean = !!body.dryRun;\n\n    if (!phase) {\n        return {\n            statusCode: 400,\n            body: JSON.stringify({ error: \"phase is required: 'ignored_hashes' | 'scan_counts' | 'move_stale'\" }),\n        };\n    }\n\n    await db.connect();\n    const t0 = Date.now();\n\n    try {\n        if (phase === \"ignored_hashes\") {\n            // Backfill content_hash_id on existing ignored_blockers rows by joining\n            // back to blockers. Safe to re-run (NULL-only update).\n            const auditFilter = auditId ? `AND ib.audit_id = $1` : \"\";\n            const values = auditId ? [auditId] : [];\n\n            const result = await db.query({\n                text: `\n                    ${dryRun ? \"SELECT COUNT(*) AS updated FROM\" : \"UPDATE\"} ignored_blockers ib\n                    ${dryRun ? \"JOIN\" : \"SET content_hash_id = b.content_hash_id FROM\"} blockers b\n                    ${dryRun ? \"ON\" : \"WHERE\"} ib.blocker_id = b.id\n                    AND ib.content_hash_id IS NULL\n                    ${auditFilter}\n                `,\n                values,\n            });\n\n            const updated = dryRun ? result.rows[0]?.updated : result.rowCount;\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, dryRun, updated, ms: Date.now() - t0 }),\n            };\n        }\n\n        if (phase === \"scan_counts\") {\n            // Backfill blocker_count + equalified_count on every scan row from the\n            // active blockers table. MUST run BEFORE any blockers are moved to stale.\n            const auditFilter = auditId ? `WHERE s.audit_id = $1` : \"\";\n            const values = auditId ? [auditId] : [];\n\n            if (dryRun) {\n                const result = await db.query({\n                    text: `SELECT COUNT(*) AS scan_count FROM scans s ${auditFilter}`,\n                    values,\n                });\n                await db.clean();\n                return {\n                    statusCode: 200,\n                    body: JSON.stringify({ phase, dryRun, scansToUpdate: result.rows[0]?.scan_count, ms: Date.now() - t0 }),\n                };\n            }\n\n            const result = await db.query({\n                text: `\n                    UPDATE scans s SET\n                        blocker_count = COALESCE((SELECT COUNT(*) FROM blockers WHERE scan_id = s.id), 0),\n                        equalified_count = COALESCE((SELECT COUNT(*) FROM blockers WHERE scan_id = s.id AND equalified = true), 0)\n                    ${auditFilter}\n                `,\n                values,\n            });\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, scansUpdated: result.rowCount, ms: Date.now() - t0 }),\n            };\n        }\n\n        if (phase === \"move_stale\") {\n            // Move blockers for non-latest scans (per audit) from blockers → stale_blockers.\n            // Batched: process N stale scans per Lambda invocation. Caller re-invokes until done.\n            const scansPerBatch: number = body.scansPerBatch ?? 5;\n            const maxBatches: number = body.maxBatches ?? 20;\n            // Stop starting new batches with this much headroom left in the Lambda budget.\n            // Default 100s (fits 2-min Lambda). Bump for longer Lambdas via body.softDeadlineMs.\n            const softDeadlineMs: number = body.softDeadlineMs ?? 100000;\n\n            // Pre-check: how many stale scans remain to migrate (have blockers still in active table)\n            const remainingResult = await db.query({\n                text: `\n                    WITH latest AS (\n                        SELECT DISTINCT ON (audit_id) id\n                        FROM scans\n                        ${auditId ? \"WHERE audit_id = $1\" : \"\"}\n                        ORDER BY audit_id, created_at DESC\n                    )\n                    SELECT COUNT(DISTINCT b.scan_id) AS remaining\n                    FROM blockers b\n                    WHERE b.scan_id IS NOT NULL\n                    AND b.scan_id NOT IN (SELECT id FROM latest)\n                    ${auditId ? \"AND b.audit_id = $1\" : \"\"}\n                `,\n                values: auditId ? [auditId] : [],\n            });\n            const remainingStaleScans = parseInt(remainingResult.rows[0]?.remaining ?? \"0\", 10);\n\n            if (dryRun) {\n                await db.clean();\n                return {\n                    statusCode: 200,\n                    body: JSON.stringify({ phase, dryRun, remainingStaleScans, ms: Date.now() - t0 }),\n                };\n            }\n\n            let batchesRun = 0;\n            let totalRowsMoved = 0;\n            const batchResults: any[] = [];\n\n            while (batchesRun < maxBatches && Date.now() - t0 < softDeadlineMs) {\n                const moveResult = await db.query({\n                    text: `\n                        WITH latest AS (\n                            SELECT DISTINCT ON (audit_id) id\n                            FROM scans\n                            ${auditId ? \"WHERE audit_id = $1\" : \"\"}\n                            ORDER BY audit_id, created_at DESC\n                        ),\n                        target_scans AS (\n                            SELECT DISTINCT b.scan_id\n                            FROM blockers b\n                            WHERE b.scan_id IS NOT NULL\n                            AND b.scan_id NOT IN (SELECT id FROM latest)\n                            ${auditId ? \"AND b.audit_id = $1\" : \"\"}\n                            LIMIT ${scansPerBatch}\n                        ),\n                        moved AS (\n                            DELETE FROM blockers\n                            WHERE scan_id IN (SELECT scan_id FROM target_scans)\n                            RETURNING id, created_at, updated_at, audit_id, content, content_normalized,\n                                      content_hash_id, targets, equalified, url_id, scan_id, short_id\n                        )\n                        INSERT INTO stale_blockers\n                            (id, created_at, updated_at, audit_id, content, content_normalized,\n                             content_hash_id, targets, equalified, url_id, scan_id, short_id)\n                        SELECT id, created_at, updated_at, audit_id, content, content_normalized,\n                               content_hash_id, targets, equalified, url_id, scan_id, short_id\n                        FROM moved\n                    `,\n                    values: auditId ? [auditId] : [],\n                });\n\n                const rowsMoved = moveResult.rowCount ?? 0;\n                batchesRun++;\n                totalRowsMoved += rowsMoved;\n                batchResults.push({ batch: batchesRun, rowsMoved });\n\n                if (rowsMoved === 0) break; // nothing left\n            }\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({\n                    phase,\n                    batchesRun,\n                    totalRowsMoved,\n                    remainingStaleScansBefore: remainingStaleScans,\n                    ms: Date.now() - t0,\n                    stoppedReason: batchesRun >= maxBatches\n                        ? \"max_batches_reached\"\n                        : Date.now() - t0 >= softDeadlineMs\n                            ? \"soft_deadline\"\n                            : \"no_more_work\",\n                    batches: batchResults,\n                }),\n            };\n        }\n\n        if (phase === \"move_orphan_blocker_messages\") {\n            // After move_stale, blocker_messages rows still reference the moved blockers.\n            // Move those orphans to stale_blocker_messages so the link table shrinks too.\n            // Batched: process rowsPerBatch rows per round.\n            const rowsPerBatch: number = body.rowsPerBatch ?? 200000;\n            const maxBatches: number = body.maxBatches ?? 50;\n            const softDeadlineMs: number = body.softDeadlineMs ?? 100000;\n\n            let totalRowsMoved = 0;\n            let batchesRun = 0;\n            const batchResults: any[] = [];\n\n            while (batchesRun < maxBatches && Date.now() - t0 < softDeadlineMs) {\n                const moveResult = await db.query({\n                    text: `\n                        WITH targets AS (\n                            SELECT bm.id\n                            FROM blocker_messages bm\n                            WHERE NOT EXISTS (\n                                SELECT 1 FROM blockers b WHERE b.id = bm.blocker_id\n                            )\n                            LIMIT ${rowsPerBatch}\n                        ),\n                        moved AS (\n                            DELETE FROM blocker_messages\n                            WHERE id IN (SELECT id FROM targets)\n                            RETURNING id, created_at, updated_at, message_id, blocker_id\n                        )\n                        INSERT INTO stale_blocker_messages\n                            (id, created_at, updated_at, message_id, blocker_id)\n                        SELECT id, created_at, updated_at, message_id, blocker_id FROM moved\n                    `,\n                });\n\n                const rowsMoved = moveResult.rowCount ?? 0;\n                batchesRun++;\n                totalRowsMoved += rowsMoved;\n                batchResults.push({ batch: batchesRun, rowsMoved });\n\n                if (rowsMoved === 0) break;\n            }\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({\n                    phase,\n                    batchesRun,\n                    totalRowsMoved,\n                    ms: Date.now() - t0,\n                    stoppedReason: batchesRun >= maxBatches\n                        ? \"max_batches_reached\"\n                        : Date.now() - t0 >= softDeadlineMs\n                            ? \"soft_deadline\"\n                            : \"no_more_work\",\n                    batches: batchResults,\n                }),\n            };\n        }\n\n        if (phase === \"vacuum_full\") {\n            // VACUUM FULL rewrites the heap to reclaim space from dead tuples.\n            // Takes an ACCESS EXCLUSIVE lock for the duration — table is unavailable.\n            // Hasura SQL console won't let you run this (TX wrapper); this route works\n            // because serverless-postgres runs each query non-transactionally.\n            const tableName: string = body.tableName;\n            if (!tableName || !/^[a-z_]+$/.test(tableName)) {\n                await db.clean();\n                return { statusCode: 400, body: JSON.stringify({ error: \"tableName required, lowercase letters/underscores only\" }) };\n            }\n            await db.query({ text: `VACUUM FULL public.${tableName}` });\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, tableName, ms: Date.now() - t0 }),\n            };\n        }\n\n        await db.clean();\n        return {\n            statusCode: 400,\n            body: JSON.stringify({ error: `unknown phase '${phase}'` }),\n        };\n    } catch (err: any) {\n        try { await db.clean(); } catch {}\n        console.error(\"migrateStaleBlockers error:\", err);\n        return {\n            statusCode: 500,\n            body: JSON.stringify({ error: err?.message || String(err), phase, ms: Date.now() - t0 }),\n        };\n    }\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/EqualifyEverything/equalify/blob/30dd97a2e32550554d6336000d73b7506f6ae384/apps/backend/routes/internal/migrateStaleBlockers.ts#L19-L287",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=serverless-postgres%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F229"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const ServerlessClient = require('serverless-postgres');\nconst client = new ServerlessClient({ connectionString: process.env.DATABASE_URL });\nasync function handler() {\n  await client.connect();\n  const result = await client.query('SELECT 1 AS one');\n  await client.clean();\n  return result.rows;\n}\nmodule.exports.handler = handler;\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/serverless-postgres@2.1.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F234"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript PostgreSQL library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#node-postgres",
          "label": [
            {
              "t": "text",
              "text": "node-postgres"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits general Node.js apps that want explicit pool and client control. "
        },
        {
          "t": "link",
          "href": "#postgres-js",
          "label": [
            {
              "t": "text",
              "text": "Postgres.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits code that writes queries as tagged template literals. "
        },
        {
          "t": "link",
          "href": "#neon",
          "label": [
            {
              "t": "text",
              "text": "Neon serverless driver"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits serverless and edge functions that query over HTTP or WebSockets."
        }
      ]
    },
    {
      "q": "What is the Neon serverless driver?",
      "a": [
        {
          "t": "text",
          "text": "The "
        },
        {
          "t": "link",
          "href": "#neon",
          "label": [
            {
              "t": "text",
              "text": "Neon serverless driver"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs PostgreSQL queries over HTTPS or WebSockets from JavaScript runtimes. Its WebSocket mode offers a Pool and Client compatible with node-postgres."
        }
      ]
    },
    {
      "q": "What is pg Pool?",
      "a": [
        {
          "t": "text",
          "text": "Pool is the connection pool class in "
        },
        {
          "t": "link",
          "href": "#node-postgres",
          "label": [
            {
              "t": "text",
              "text": "node-postgres"
            }
          ]
        },
        {
          "t": "text",
          "text": ". It keeps connections open and hands one to each query instead of connecting per request."
        }
      ]
    },
    {
      "q": "What is Slonik?",
      "a": [
        {
          "t": "link",
          "href": "#slonik",
          "label": [
            {
              "t": "text",
              "text": "Slonik"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a PostgreSQL client that builds queries from SQL tokens. It adds result assertions, transaction scoping, and schema validation of rows."
        }
      ]
    },
    {
      "q": "node-postgres vs Postgres.js: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#node-postgres",
          "label": [
            {
              "t": "text",
              "text": "node-postgres"
            }
          ]
        },
        {
          "t": "text",
          "text": " uses parameterized query configs with an explicit pool and client lifecycle. "
        },
        {
          "t": "link",
          "href": "#postgres-js",
          "label": [
            {
              "t": "text",
              "text": "Postgres.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " writes queries as tagged templates with an automatically managed pool."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pg",
      "display": "node-postgres",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pg",
      "display": "372.0M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, pg",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pg",
      "display": "8.23.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, pg",
      "display": "v8.23.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, pg",
      "display": "13.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Connection pooling, pg",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Value parameters, pg",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Interactive transactions, pg",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Prepared statements, pg",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, pg",
      "display": "npm install pg",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, pg",
      "display": "Connects Node.js applications to PostgreSQL through query and connection APIs.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, pg",
      "display": "Pools reusable connections",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, pg",
      "display": "Use Pool for a shared set of database connections.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, pg",
      "display": "Caches named prepared statements",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, pg",
      "display": "Name a query to reuse its plan on the same connection.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, pg",
      "display": "Transactions need one checked-out client",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, pg",
      "display": "Run all transaction statements on the same borrowed client.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, pg",
      "display": "Borrowed clients must be released",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, pg",
      "display": "Return clients to the pool even after query errors.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, pg",
      "display": "import { Client } from 'pg'\nconst client = await new Client().connect()\n \ntry {\n  const res = await client.query('SELECT $1::text as message', ['Hello world!'])\n  console.log(res.rows[0].message) // Hello world!\n} catch (err) {\n  console.error(err)\n} finally {\n  await client.end()\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, pg",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async () => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\t\tconst { fields, rawQueryConfig: rawQuery, client, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\t\tthis;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', async (span) => {\n\t\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t\t'drizzle.query.name': rawQuery.name,\n\t\t\t\t\t\t'drizzle.query.text': rawQuery.text,\n\t\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t\t});\n\t\t\t\t\treturn this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst result = await tracer.startActiveSpan('drizzle.driver.execute', (span) => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.name': query.name,\n\t\t\t\t\t'drizzle.query.text': query.text,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query.text, params, async () => {\n\t\t\t\t\treturn await client.query(query, params);\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(result.rows)\n\t\t\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, pg",
      "display": "session.ts · execute()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, pg",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Library name, postgres",
      "display": "Postgres.js",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, postgres",
      "display": "145.4M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, postgres",
      "display": "Unlicense",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, postgres",
      "display": "3.4.9",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, postgres",
      "display": "v3.4.9",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, postgres",
      "display": "8.8K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Connection pooling, postgres",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Value parameters, postgres",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Interactive transactions, postgres",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Prepared statements, postgres",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, postgres",
      "display": "npm install postgres",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, postgres",
      "display": "Sends SQL template values separately through PostgreSQL protocol parameters.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, postgres",
      "display": "Binds values through tagged templates",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, postgres",
      "display": "Interpolate values in sql templates; the driver sends them separately.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, postgres",
      "display": "Reserves connections for transactions",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, postgres",
      "display": "Use sql.begin to keep a transaction on its own connection.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, postgres",
      "display": "numeric and decimal return strings",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, postgres",
      "display": "Choose explicit parsing for numeric and decimal database values.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, postgres",
      "display": "Undefined values are rejected",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, postgres",
      "display": "Pass null explicitly for missing values.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, postgres",
      "display": "// users.js\nimport sql from './db.js'\n\nasync function getUsersOver(age) {\n  const users = await sql`\n    select\n      name,\n      age\n    from users\n    where age > ${ age }\n  `\n  // users = Result [{ name: \"Walter\", age: 80 }, { name: 'Murray', age: 68 }, ...]\n  return users\n}\n\n\nasync function insertUser({ name, age }) {\n  const users = await sql`\n    insert into users\n      (name, age)\n    values\n      (${ name }, ${ age })\n    returning name, age\n  `\n  // users = Result [{ name: \"Murray\", age: 68 }]\n  return users\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, postgres",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async (span) => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tspan?.setAttributes({\n\t\t\t\t'drizzle.query.text': this.queryString,\n\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t});\n\n\t\t\tthis.logger.logQuery(this.queryString, params);\n\n\t\t\tconst { fields, queryString: query, client, joinsNotNullableMap, customResultMapper } = this;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst rows = await tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.text': query,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t}).values();\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(rows)\n\t\t\t\t\t: rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, postgres",
      "display": "session.ts · execute()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, postgres",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Library name, @neondatabase/serverless",
      "display": "Neon",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, @neondatabase/serverless",
      "display": "28.6M",
      "asOf": "2026-11-16"
    },
    "F55": {
      "label": "License, @neondatabase/serverless",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, @neondatabase/serverless",
      "display": "1.1.0",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, @neondatabase/serverless",
      "display": "v1.1.0",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, @neondatabase/serverless",
      "display": "557",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Connection pooling, @neondatabase/serverless",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Value parameters, @neondatabase/serverless",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Interactive transactions, @neondatabase/serverless",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, @neondatabase/serverless",
      "display": "npm install @neondatabase/serverless",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, @neondatabase/serverless",
      "display": "Runs PostgreSQL queries over HTTP or WebSockets in JavaScript runtimes.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, @neondatabase/serverless",
      "display": "Queries over HTTP requests",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, @neondatabase/serverless",
      "display": "Use neon for one-shot queries through fetch.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, @neondatabase/serverless",
      "display": "Supports interactive transactions over WebSockets",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, @neondatabase/serverless",
      "display": "Use Pool or Client for sessions and dependent transaction queries.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, @neondatabase/serverless",
      "display": "HTTP batches are not interactive",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, @neondatabase/serverless",
      "display": "Use WebSocket Pool or Client for session-dependent transactions.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, @neondatabase/serverless",
      "display": "Serverless pools need request-local cleanup",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, @neondatabase/serverless",
      "display": "Create, use, and close WebSocket clients inside the same request handler.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, @neondatabase/serverless",
      "display": "import { neon } from '@neondatabase/serverless';\nconst sql = neon(process.env.DATABASE_URL);\n\nexport default async (req: Request, ctx: any) => {\n  // get and validate the `postId` query parameter\n  const postId = parseInt(new URL(req.url).searchParams.get('postId'), 10);\n  if (isNaN(postId)) return new Response('Bad request', { status: 400 });\n\n  // query and validate the post\n  const [post] = await sql`SELECT * FROM posts WHERE id = ${postId}`;\n  if (!post) return new Response('Not found', { status: 404 });\n\n  // return the post as JSON\n  return new Response(JSON.stringify(post), {\n    headers: { 'content-type': 'application/json' }\n  });\n}\n\nexport const config = {\n  runtime: 'edge',\n  regions: ['iad1'],  // specify the region nearest your Neon DB\n};\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, @neondatabase/serverless",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\tconst { fields, client, rawQueryConfig: rawQuery, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\tthis;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn await this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t});\n\t\t}\n\n\t\tconst result = await this.queryWithCache(query.text, params, async () => {\n\t\t\treturn await client.query(query, params);\n\t\t});\n\n\t\treturn customResultMapper\n\t\t\t? customResultMapper(result.rows)\n\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, @neondatabase/serverless",
      "display": "session.ts · execute()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, @neondatabase/serverless",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Library name, pg-promise",
      "display": "pg-promise",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, pg-promise",
      "display": "3.6M",
      "asOf": "2026-11-16"
    },
    "F80": {
      "label": "License, pg-promise",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, pg-promise",
      "display": "12.8.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Undated package release, pg-promise",
      "display": "v12.8.0",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Repository stars, pg-promise",
      "display": "3.5K",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Connection pooling, pg-promise",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Value parameters, pg-promise",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Interactive transactions, pg-promise",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Prepared statements, pg-promise",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, pg-promise",
      "display": "npm install pg-promise",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, pg-promise",
      "display": "Checks query results with methods named for the expected row count.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, pg-promise",
      "display": "Checks expected result row counts",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, pg-promise",
      "display": "Use result-specific methods to reject unexpected numbers of rows.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, pg-promise",
      "display": "Reuses connections across related queries",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, pg-promise",
      "display": "Group related queries in task; use tx for automatic transactions.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, pg-promise",
      "display": "Brace placeholders conflict with templates",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, pg-promise",
      "display": "Keep those placeholders in ordinary strings instead of JavaScript template literals.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, pg-promise",
      "display": "// Proper way to initialize and share the Database object\n\n// Loading and initializing the library:\nconst pgp = require('pg-promise')({\n    // Initialization Options\n});\n\n// Preparing the connection details:\nconst cn = 'postgres://username:password@host:port/database';\n\n// Creating a new database instance from the connection details:\nconst db = pgp(cn);\n\n// Exporting the database object for shared use:\nmodule.exports = db;\n\ndb.task('my-task', async t => {\n        // t.ctx = task context object\n\n        const user = await t.one('SELECT id FROM Users WHERE name = $1', ['John']);\n        return t.any('SELECT * FROM Events WHERE userId = $1', [user.id]);\n    })\n    .then(data => {\n        // success\n        // data = as returned from the task's callback\n    })\n    .catch(error => {\n        // error\n    });\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "Managing explicit pooled client connections",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose pg",
      "display": "native pool lifecycle",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "managing explicit pooled client connections",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider pg-promise",
      "display": "unexpected row counts should reject automatically",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Writing queries with tagged SQL templates",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose postgres",
      "display": "separate protocol parameters",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "writing queries with tagged SQL templates",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "When to consider pg",
      "display": "explicitly named prepared statements are preferred",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Checking the expected query result shape",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose pg-promise",
      "display": "result-specific row-count methods",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "checking the expected query result shape",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider postgres",
      "display": "tagged SQL templates fit the calling code",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Querying an edge database over HTTP",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose @neondatabase/serverless",
      "display": "fetch-based one-shot queries",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "querying an edge database over HTTP",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider pg",
      "display": "ordinary pooled PostgreSQL clients fit the runtime",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "JavaScript PostgreSQL libraries let application developers connect to PostgreSQL and execute queries.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Do node-postgres parameters escape dynamic table names?",
      "display": "PostgreSQL value parameters do not support identifiers such as table or column names.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: How does node-postgres treat undefined parameter values?",
      "display": "Both null and undefined parameter values become SQL null.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Can a node-postgres transaction use pool.query for each statement?",
      "display": "Every transaction statement must use the same client; pool.query is not the transaction API.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does Postgres.js automatically prepare queries?",
      "display": "It automatically prepares queries inferred to be static; prepare: false disables that behavior.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can Postgres.js accept undefined query values?",
      "display": "Undefined query values are rejected; use null explicitly for a null value.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: What does Postgres.js do when a transaction fails?",
      "display": "sql.begin automatically rolls back a failed transaction and releases its connection.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Do pg-promise method names describe affected rows?",
      "display": "Result-specific method names describe returned row counts, not the number of affected rows.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: How does pg-promise share a connection across queries?",
      "display": "A task holds a shared connection for its callback and releases it when finished.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can pg-promise formatting filters be used with prepared statements?",
      "display": "Formatting filters apply to ordinary queries; PreparedStatement and ParameterizedQuery are formatted on the server.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does a Neon HTTP transaction support dependent interactive queries?",
      "display": "HTTP transaction submits multiple queries in one non-interactive batch; use WebSocket clients for interactive work.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can a Neon WebSocket pool outlive an edge request?",
      "display": "Connect, use and close Pool or Client within the same serverless request handler.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can Neon connect to a self-hosted PostgreSQL instance?",
      "display": "Its own deployment path for a PostgreSQL instance requires running a WebSocket proxy.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, pg",
      "display": "pg",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, pg",
      "display": "372.0M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, pg",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, pg",
      "display": "8.23.1",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, pg",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, pg",
      "display": "npm install pg@8.23.1",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, pg",
      "display": "import { Client } from 'pg';\nconst client = new Client();\nawait client.connect();\nconsole.log((await client.query('SELECT 1 AS one')).rows);\nawait client.end();\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "SQL template tag, pg",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Managed connection pool, pg",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Built-in HTTPS queries, pg",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Query and deployment model, pg",
      "display": "General Node.js PostgreSQL client with explicit Pool/Client lifecycle,parameterized query configs,and optional native libpq integration.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Project function, pg",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async () => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\t\tconst { fields, rawQueryConfig: rawQuery, client, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\t\tthis;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', async (span) => {\n\t\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t\t'drizzle.query.name': rawQuery.name,\n\t\t\t\t\t\t'drizzle.query.text': rawQuery.text,\n\t\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t\t});\n\t\t\t\t\treturn this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst result = await tracer.startActiveSpan('drizzle.driver.execute', (span) => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.name': query.name,\n\t\t\t\t\t'drizzle.query.text': query.text,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query.text, params, async () => {\n\t\t\t\t\treturn await client.query(query, params);\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(result.rows)\n\t\t\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project source file, pg",
      "display": "drizzle-orm/src/node-postgres/session.ts",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project full_name, pg",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project stargazers_count, pg",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Library name, postgres",
      "display": "postgres",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Monthly downloads, postgres",
      "display": "145.4M",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "License, postgres",
      "display": "Unlicense",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release, postgres",
      "display": "4.1.1",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release date, postgres",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Install, postgres",
      "display": "npm install postgres@4.1.1",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Quickstart, postgres",
      "display": "import postgres from 'postgres';\nconst sql = postgres();\nconsole.log(await sql`SELECT 1 AS one`);\nawait sql.end();\n",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "SQL template tag, postgres",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Managed connection pool, postgres",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Built-in HTTPS queries, postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Query and deployment model, postgres",
      "display": "Tagged-template PostgreSQL client with an automatically managed connection pool,SQL fragments,and transaction callbacks.",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project function, postgres",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\treturn tracer.startActiveSpan('drizzle.execute', async (span) => {\n\t\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\t\tspan?.setAttributes({\n\t\t\t\t'drizzle.query.text': this.queryString,\n\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t});\n\n\t\t\tthis.logger.logQuery(this.queryString, params);\n\n\t\t\tconst { fields, queryString: query, client, joinsNotNullableMap, customResultMapper } = this;\n\t\t\tif (!fields && !customResultMapper) {\n\t\t\t\treturn tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst rows = await tracer.startActiveSpan('drizzle.driver.execute', () => {\n\t\t\t\tspan?.setAttributes({\n\t\t\t\t\t'drizzle.query.text': query,\n\t\t\t\t\t'drizzle.query.params': JSON.stringify(params),\n\t\t\t\t});\n\t\t\t\treturn this.queryWithCache(query, params, async () => {\n\t\t\t\t\treturn await client.unsafe(query, params as any[], {\n\t\t\t\t\t\tprepare: this.prepare,\n\t\t\t\t\t}).values();\n\t\t\t\t});\n\t\t\t});\n\n\t\t\treturn tracer.startActiveSpan('drizzle.mapResponse', () => {\n\t\t\t\treturn customResultMapper\n\t\t\t\t\t? customResultMapper(rows)\n\t\t\t\t\t: rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t\t\t});\n\t\t});\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project source file, postgres",
      "display": "drizzle-orm/src/postgres-js/session.ts",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project full_name, postgres",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project stargazers_count, postgres",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Library name, @neondatabase/serverless",
      "display": "@neondatabase/serverless",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Monthly downloads, @neondatabase/serverless",
      "display": "28.6M",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "License, @neondatabase/serverless",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release, @neondatabase/serverless",
      "display": "1.2.1",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Package release date, @neondatabase/serverless",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Install, @neondatabase/serverless",
      "display": "npm install @neondatabase/serverless@1.2.1",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Quickstart, @neondatabase/serverless",
      "display": "import { neon } from '@neondatabase/serverless';\nconst sql = neon(process.env.DATABASE_URL);\nconsole.log(await sql`SELECT 1 AS one`);\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "SQL template tag, @neondatabase/serverless",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Managed connection pool, @neondatabase/serverless",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Built-in HTTPS queries, @neondatabase/serverless",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Query and deployment model, @neondatabase/serverless",
      "display": "Neon driver with distinct HTTPS neon queries/noninteractive transactions and WebSocket pg-compatible Pool/Client sessions.",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Project function, @neondatabase/serverless",
      "display": "async execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tthis.logger.logQuery(this.rawQueryConfig.text, params);\n\n\t\tconst { fields, client, rawQueryConfig: rawQuery, queryConfig: query, joinsNotNullableMap, customResultMapper } =\n\t\t\tthis;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn await this.queryWithCache(rawQuery.text, params, async () => {\n\t\t\t\treturn await client.query(rawQuery, params);\n\t\t\t});\n\t\t}\n\n\t\tconst result = await this.queryWithCache(query.text, params, async () => {\n\t\t\treturn await client.query(query, params);\n\t\t});\n\n\t\treturn customResultMapper\n\t\t\t? customResultMapper(result.rows)\n\t\t\t: result.rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project source file, @neondatabase/serverless",
      "display": "drizzle-orm/src/neon-serverless/session.ts",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project full_name, @neondatabase/serverless",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project stargazers_count, @neondatabase/serverless",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Library name, pg-promise",
      "display": "pg-promise",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Monthly downloads, pg-promise",
      "display": "3.6M",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "License, pg-promise",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Package release, pg-promise",
      "display": "12.8.0",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release date, pg-promise",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Install, pg-promise",
      "display": "npm install pg-promise@12.8.0",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Quickstart, pg-promise",
      "display": "import pgPromise from 'pg-promise';\nconst pgp = pgPromise();\nconst db = pgp(process.env.DATABASE_URL);\nconsole.log(await db.one('SELECT 1 AS one'));\npgp.end();\n",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "SQL template tag, pg-promise",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Managed connection pool, pg-promise",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Built-in HTTPS queries, pg-promise",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Query and deployment model, pg-promise",
      "display": "pg-backed database interface with client-side SQL formatting,result-cardinality methods,tasks,and transaction callbacks.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Library name, pg-native",
      "display": "pg-native",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Monthly downloads, pg-native",
      "display": "1.3M",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "License, pg-native",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release, pg-native",
      "display": "3.9.1",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release date, pg-native",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Install, pg-native",
      "display": "npm install pg-native@3.9.1",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Quickstart, pg-native",
      "display": "const Client = require('pg-native');\nconst client = new Client();\nclient.connectSync();\nconsole.log(client.querySync('SELECT 1 AS one'));\nclient.end();\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Official description, pg-native",
      "display": "Connects to PostgreSQL through native libpq with synchronous and callback query interfaces.",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart source file, pg-native",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "SQL template tag, pg-native",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Managed connection pool, pg-native",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Built-in HTTPS queries, pg-native",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Query and deployment model, pg-native",
      "display": "Direct native libpq client with synchronous and callback query interfaces; requires native build/client-library prerequisites.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, slonik",
      "display": "slonik",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, slonik",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, slonik",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, slonik",
      "display": "49.13.0",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, slonik",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, slonik",
      "display": "npm install slonik@49.13.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, slonik",
      "display": "import { createPool, sql } from 'slonik';\nconst pool = await createPool(process.env.DATABASE_URL);\nconsole.log((await pool.query(sql.unsafe`SELECT 1 AS one`)).rows);\nawait pool.end();\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, slonik",
      "display": "Builds PostgreSQL queries from SQL tokens, with assertions and transaction scoping.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, slonik",
      "display": "dist/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "SQL template tag, slonik",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Managed connection pool, slonik",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Built-in HTTPS queries, slonik",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Query and deployment model, slonik",
      "display": "PostgreSQL pool/client interface with SQL tokens,assertions,transaction scoping,and current Standard Schema validation contracts.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project function, slonik",
      "display": "public async transaction<T>(handler: () => Promise<T>): Promise<T> {\n    return this.pool.transaction(async (connection) => {\n      this.logger.debug(\n        `[${RequestContextService.getRequestId()}] transaction started`,\n      );\n      if (!RequestContextService.getTransactionConnection()) {\n        RequestContextService.setTransactionConnection(connection);\n      }\n\n      try {\n        const result = await handler();\n        this.logger.debug(\n          `[${RequestContextService.getRequestId()}] transaction committed`,\n        );\n        return result;\n      } catch (e) {\n        this.logger.debug(\n          `[${RequestContextService.getRequestId()}] transaction aborted`,\n        );\n        throw e;\n      } finally {\n        RequestContextService.cleanTransactionConnection();\n      }\n    });\n  }\n",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project source file, slonik",
      "display": "src/libs/db/sql-repository.base.ts",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project full_name, slonik",
      "display": "Sairyss/domain-driven-hexagon",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project stargazers_count, slonik",
      "display": "15.0K",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Library name, @databases/pg",
      "display": "@databases/pg",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Monthly downloads, @databases/pg",
      "display": "103.5K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "License, @databases/pg",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release, @databases/pg",
      "display": "6.1.0",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release date, @databases/pg",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Install, @databases/pg",
      "display": "npm install @databases/pg@6.1.0",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Quickstart, @databases/pg",
      "display": "import createConnectionPool, { sql } from '@databases/pg';\nconst db = createConnectionPool({ connectionString: process.env.DATABASE_URL });\nconsole.log(await db.query(sql`SELECT 1 AS one`));\nawait db.dispose();\n",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Official description, @databases/pg",
      "display": "Runs SQL-tagged queries through a PostgreSQL connection pool with transaction scopes and streaming.",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Quickstart source file, @databases/pg",
      "display": "lib/index.d.ts",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "SQL template tag, @databases/pg",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Managed connection pool, @databases/pg",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Built-in HTTPS queries, @databases/pg",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Query and deployment model, @databases/pg",
      "display": "SQL-tagged PostgreSQL connection-pool interface with task/transaction scopes,streaming,and configurable type conversion.",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project function, @databases/pg",
      "display": "export const getPostgres = (): ConnectionPool => {\n  if (!db) {\n    if (!config.postgres.connectionString) {\n      throw new Error(\n        'Postgres connection string not set. Please define \"DATABASE_URL\" environment variable',\n      );\n    }\n\n    if (!config.postgres.schemaName) {\n      throw new Error(\n        'Postgres schema name string not set. Please define \"DATABASE_SCHEMA\" environment variable',\n      );\n    }\n\n    db = createConnectionPool({\n      connectionString: config.postgres.connectionString,\n      schema: config.postgres.schemaName,\n    });\n  }\n\n  return db;\n};\n",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project source file, @databases/pg",
      "display": "samples/from_crud_to_eventsourcing/src/core/postgres.ts",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project full_name, @databases/pg",
      "display": "oskardudycz/EventSourcing.NodeJS",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project stargazers_count, @databases/pg",
      "display": "508",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Library name, serverless-postgres",
      "display": "serverless-postgres",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Monthly downloads, serverless-postgres",
      "display": "80.2K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "License, serverless-postgres",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Package release, serverless-postgres",
      "display": "2.1.2",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Package release date, serverless-postgres",
      "display": "May 2025",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Install, serverless-postgres",
      "display": "npm install serverless-postgres@2.1.2",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart, serverless-postgres",
      "display": "const ServerlessClient = require('serverless-postgres');\nconst client = new ServerlessClient({ connectionString: process.env.DATABASE_URL });\nasync function handler() {\n  await client.connect();\n  const result = await client.query('SELECT 1 AS one');\n  await client.clean();\n  return result.rows;\n}\nmodule.exports.handler = handler;\n",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Official description, serverless-postgres",
      "display": "Wraps a single pg client for serverless functions with connection retry and backoff.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart source file, serverless-postgres",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "SQL template tag, serverless-postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Managed connection pool, serverless-postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Built-in HTTPS queries, serverless-postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Query and deployment model, serverless-postgres",
      "display": "Single-client pg wrapper for FaaS with connection retry/backoff and explicit clean() zombie-connection management; not an HTTP driver or an in-process pool.",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project function, serverless-postgres",
      "display": "export const migrateStaleBlockers = async () => {\n    const body = (event.body as any) || {};\n    const phase: string = body.phase;\n    const auditId: string | undefined = body.auditId;\n    const dryRun: boolean = !!body.dryRun;\n\n    if (!phase) {\n        return {\n            statusCode: 400,\n            body: JSON.stringify({ error: \"phase is required: 'ignored_hashes' | 'scan_counts' | 'move_stale'\" }),\n        };\n    }\n\n    await db.connect();\n    const t0 = Date.now();\n\n    try {\n        if (phase === \"ignored_hashes\") {\n            // Backfill content_hash_id on existing ignored_blockers rows by joining\n            // back to blockers. Safe to re-run (NULL-only update).\n            const auditFilter = auditId ? `AND ib.audit_id = $1` : \"\";\n            const values = auditId ? [auditId] : [];\n\n            const result = await db.query({\n                text: `\n                    ${dryRun ? \"SELECT COUNT(*) AS updated FROM\" : \"UPDATE\"} ignored_blockers ib\n                    ${dryRun ? \"JOIN\" : \"SET content_hash_id = b.content_hash_id FROM\"} blockers b\n                    ${dryRun ? \"ON\" : \"WHERE\"} ib.blocker_id = b.id\n                    AND ib.content_hash_id IS NULL\n                    ${auditFilter}\n                `,\n                values,\n            });\n\n            const updated = dryRun ? result.rows[0]?.updated : result.rowCount;\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, dryRun, updated, ms: Date.now() - t0 }),\n            };\n        }\n\n        if (phase === \"scan_counts\") {\n            // Backfill blocker_count + equalified_count on every scan row from the\n            // active blockers table. MUST run BEFORE any blockers are moved to stale.\n            const auditFilter = auditId ? `WHERE s.audit_id = $1` : \"\";\n            const values = auditId ? [auditId] : [];\n\n            if (dryRun) {\n                const result = await db.query({\n                    text: `SELECT COUNT(*) AS scan_count FROM scans s ${auditFilter}`,\n                    values,\n                });\n                await db.clean();\n                return {\n                    statusCode: 200,\n                    body: JSON.stringify({ phase, dryRun, scansToUpdate: result.rows[0]?.scan_count, ms: Date.now() - t0 }),\n                };\n            }\n\n            const result = await db.query({\n                text: `\n                    UPDATE scans s SET\n                        blocker_count = COALESCE((SELECT COUNT(*) FROM blockers WHERE scan_id = s.id), 0),\n                        equalified_count = COALESCE((SELECT COUNT(*) FROM blockers WHERE scan_id = s.id AND equalified = true), 0)\n                    ${auditFilter}\n                `,\n                values,\n            });\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, scansUpdated: result.rowCount, ms: Date.now() - t0 }),\n            };\n        }\n\n        if (phase === \"move_stale\") {\n            // Move blockers for non-latest scans (per audit) from blockers → stale_blockers.\n            // Batched: process N stale scans per Lambda invocation. Caller re-invokes until done.\n            const scansPerBatch: number = body.scansPerBatch ?? 5;\n            const maxBatches: number = body.maxBatches ?? 20;\n            // Stop starting new batches with this much headroom left in the Lambda budget.\n            // Default 100s (fits 2-min Lambda). Bump for longer Lambdas via body.softDeadlineMs.\n            const softDeadlineMs: number = body.softDeadlineMs ?? 100000;\n\n            // Pre-check: how many stale scans remain to migrate (have blockers still in active table)\n            const remainingResult = await db.query({\n                text: `\n                    WITH latest AS (\n                        SELECT DISTINCT ON (audit_id) id\n                        FROM scans\n                        ${auditId ? \"WHERE audit_id = $1\" : \"\"}\n                        ORDER BY audit_id, created_at DESC\n                    )\n                    SELECT COUNT(DISTINCT b.scan_id) AS remaining\n                    FROM blockers b\n                    WHERE b.scan_id IS NOT NULL\n                    AND b.scan_id NOT IN (SELECT id FROM latest)\n                    ${auditId ? \"AND b.audit_id = $1\" : \"\"}\n                `,\n                values: auditId ? [auditId] : [],\n            });\n            const remainingStaleScans = parseInt(remainingResult.rows[0]?.remaining ?? \"0\", 10);\n\n            if (dryRun) {\n                await db.clean();\n                return {\n                    statusCode: 200,\n                    body: JSON.stringify({ phase, dryRun, remainingStaleScans, ms: Date.now() - t0 }),\n                };\n            }\n\n            let batchesRun = 0;\n            let totalRowsMoved = 0;\n            const batchResults: any[] = [];\n\n            while (batchesRun < maxBatches && Date.now() - t0 < softDeadlineMs) {\n                const moveResult = await db.query({\n                    text: `\n                        WITH latest AS (\n                            SELECT DISTINCT ON (audit_id) id\n                            FROM scans\n                            ${auditId ? \"WHERE audit_id = $1\" : \"\"}\n                            ORDER BY audit_id, created_at DESC\n                        ),\n                        target_scans AS (\n                            SELECT DISTINCT b.scan_id\n                            FROM blockers b\n                            WHERE b.scan_id IS NOT NULL\n                            AND b.scan_id NOT IN (SELECT id FROM latest)\n                            ${auditId ? \"AND b.audit_id = $1\" : \"\"}\n                            LIMIT ${scansPerBatch}\n                        ),\n                        moved AS (\n                            DELETE FROM blockers\n                            WHERE scan_id IN (SELECT scan_id FROM target_scans)\n                            RETURNING id, created_at, updated_at, audit_id, content, content_normalized,\n                                      content_hash_id, targets, equalified, url_id, scan_id, short_id\n                        )\n                        INSERT INTO stale_blockers\n                            (id, created_at, updated_at, audit_id, content, content_normalized,\n                             content_hash_id, targets, equalified, url_id, scan_id, short_id)\n                        SELECT id, created_at, updated_at, audit_id, content, content_normalized,\n                               content_hash_id, targets, equalified, url_id, scan_id, short_id\n                        FROM moved\n                    `,\n                    values: auditId ? [auditId] : [],\n                });\n\n                const rowsMoved = moveResult.rowCount ?? 0;\n                batchesRun++;\n                totalRowsMoved += rowsMoved;\n                batchResults.push({ batch: batchesRun, rowsMoved });\n\n                if (rowsMoved === 0) break; // nothing left\n            }\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({\n                    phase,\n                    batchesRun,\n                    totalRowsMoved,\n                    remainingStaleScansBefore: remainingStaleScans,\n                    ms: Date.now() - t0,\n                    stoppedReason: batchesRun >= maxBatches\n                        ? \"max_batches_reached\"\n                        : Date.now() - t0 >= softDeadlineMs\n                            ? \"soft_deadline\"\n                            : \"no_more_work\",\n                    batches: batchResults,\n                }),\n            };\n        }\n\n        if (phase === \"move_orphan_blocker_messages\") {\n            // After move_stale, blocker_messages rows still reference the moved blockers.\n            // Move those orphans to stale_blocker_messages so the link table shrinks too.\n            // Batched: process rowsPerBatch rows per round.\n            const rowsPerBatch: number = body.rowsPerBatch ?? 200000;\n            const maxBatches: number = body.maxBatches ?? 50;\n            const softDeadlineMs: number = body.softDeadlineMs ?? 100000;\n\n            let totalRowsMoved = 0;\n            let batchesRun = 0;\n            const batchResults: any[] = [];\n\n            while (batchesRun < maxBatches && Date.now() - t0 < softDeadlineMs) {\n                const moveResult = await db.query({\n                    text: `\n                        WITH targets AS (\n                            SELECT bm.id\n                            FROM blocker_messages bm\n                            WHERE NOT EXISTS (\n                                SELECT 1 FROM blockers b WHERE b.id = bm.blocker_id\n                            )\n                            LIMIT ${rowsPerBatch}\n                        ),\n                        moved AS (\n                            DELETE FROM blocker_messages\n                            WHERE id IN (SELECT id FROM targets)\n                            RETURNING id, created_at, updated_at, message_id, blocker_id\n                        )\n                        INSERT INTO stale_blocker_messages\n                            (id, created_at, updated_at, message_id, blocker_id)\n                        SELECT id, created_at, updated_at, message_id, blocker_id FROM moved\n                    `,\n                });\n\n                const rowsMoved = moveResult.rowCount ?? 0;\n                batchesRun++;\n                totalRowsMoved += rowsMoved;\n                batchResults.push({ batch: batchesRun, rowsMoved });\n\n                if (rowsMoved === 0) break;\n            }\n\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({\n                    phase,\n                    batchesRun,\n                    totalRowsMoved,\n                    ms: Date.now() - t0,\n                    stoppedReason: batchesRun >= maxBatches\n                        ? \"max_batches_reached\"\n                        : Date.now() - t0 >= softDeadlineMs\n                            ? \"soft_deadline\"\n                            : \"no_more_work\",\n                    batches: batchResults,\n                }),\n            };\n        }\n\n        if (phase === \"vacuum_full\") {\n            // VACUUM FULL rewrites the heap to reclaim space from dead tuples.\n            // Takes an ACCESS EXCLUSIVE lock for the duration — table is unavailable.\n            // Hasura SQL console won't let you run this (TX wrapper); this route works\n            // because serverless-postgres runs each query non-transactionally.\n            const tableName: string = body.tableName;\n            if (!tableName || !/^[a-z_]+$/.test(tableName)) {\n                await db.clean();\n                return { statusCode: 400, body: JSON.stringify({ error: \"tableName required, lowercase letters/underscores only\" }) };\n            }\n            await db.query({ text: `VACUUM FULL public.${tableName}` });\n            await db.clean();\n            return {\n                statusCode: 200,\n                body: JSON.stringify({ phase, tableName, ms: Date.now() - t0 }),\n            };\n        }\n\n        await db.clean();\n        return {\n            statusCode: 400,\n            body: JSON.stringify({ error: `unknown phase '${phase}'` }),\n        };\n    } catch (err: any) {\n        try { await db.clean(); } catch {}\n        console.error(\"migrateStaleBlockers error:\", err);\n        return {\n            statusCode: 500,\n            body: JSON.stringify({ error: err?.message || String(err), phase, ms: Date.now() - t0 }),\n        };\n    }\n};\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project source file, serverless-postgres",
      "display": "apps/backend/routes/internal/migrateStaleBlockers.ts",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project full_name, serverless-postgres",
      "display": "EqualifyEverything/equalify",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project stargazers_count, serverless-postgres",
      "display": "146",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript PostgreSQL client libraries pg postgres pg-promise Neon code examples pooling parameters transactions",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
