{
  "id": "task_libraries:query-builder/javascript",
  "path": "/exapedia/javascript-query-builder-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript query builder libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript SQL query builder libraries compose SQL statements from method calls or tagged templates instead of string concatenation. A builder compiles each query into SQL text with its values passed as separate parameters. These libraries let apps and backend services build dynamic filters and joins with TypeScript types that catch a wrong column before the query runs."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript query builder libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kysely",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prisma-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#neondatabase-serverless",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#knex",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#typeorm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sequelize",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            ]
          ],
          "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": "#drizzle-orm",
          "label": [
            {
              "t": "text",
              "text": "Drizzle ORM"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F135"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "MySQL dialect",
            "Fluent SELECT/WHERE"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#postgres",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kysely",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prisma-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#neondatabase-serverless",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#knex",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#typeorm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sequelize",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "drizzle-orm",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/drizzle-team/drizzle-orm"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/drizzle-orm"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { QueryBuilder, pgTable, integer } from \"drizzle-orm/pg-core\";\n\nconst users = pgTable(\"users\", { id: integer(\"id\") });\nconst builder = new QueryBuilder();\nconst query = builder.select().from(users).toSQL();\nconsole.log(query.sql, query.params);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://orm.drizzle.team/docs/goodies",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=drizzle-orm%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "postgres",
          "name": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/porsager/postgres"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/postgres"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F157"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/porsager/postgres",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "queryObjects<T extends Row>(\n\t\tquery: string,\n\t\tparams: unknown[],\n\t): Promise<RowList<T[]>> {\n\t\treturn this.client.unsafe(query, params as any[]);\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/postgres-js/session.ts#L168-L173",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=postgres%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import postgres from \"postgres\";\n\nconst sql = postgres(process.env.DATABASE_URL);\nconst rows = await sql`select ${1} as value`;\nconsole.log(rows);\nawait sql.end();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/postgres/4.1.1",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "kysely",
          "name": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/kysely-org/kysely"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/kysely"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/kysely-org/kysely",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F170"
                    },
                    {
                      "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": "F187"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/miantiao-me/Sink",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function compileAnalyticsQuery(query: Compilable): string {\n  const compiled = query.compile()\n  if (compiled.parameters.length !== 0)\n    throw new Error('Analytics SQL queries must not contain parameters')\n\n  return compiled.sql\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/miantiao-me/Sink/blob/6718f0a5eeaddd9b0347cd18b4ff9f2de48e6fea/server/utils/analytics-sql.ts#L68-L74",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20kysely%20for%20SQL%20query%20construction%20parameters%20and%20database%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": "F170"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Kysely, PostgresDialect } from \"kysely\";\nimport pg from \"pg\";\n\nconst db = new Kysely({\n  dialect: new PostgresDialect({ pool: new pg.Pool() }),\n});\nconst query = db.selectFrom(\"users\").select(\"id\").compile();\nconsole.log(query.sql, query.parameters);\nawait db.destroy();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://kysely.dev/docs/intro",
                  "label": [
                    {
                      "t": "text",
                      "text": "intro.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F175"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "prisma-client",
          "name": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/prisma/orm"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@prisma/client"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/prisma/orm",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Prisma } from \"./generated/prisma/client\";\n\nconst query = Prisma.sql`SELECT ${1} AS value`;\nconsole.log(query.text, query.values);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.prisma.io/docs/orm/prisma-client/using-raw-sql/raw-queries",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40prisma/client%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "neondatabase-serverless",
          "name": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/neondatabase/serverless"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@neondatabase/serverless"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/neondatabase/serverless",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async queryObjects(\n\t\tquery: string,\n\t\tparams: unknown[],\n\t): Promise<FullQueryResults<false>> {\n\t\treturn this.clientQuery(query, params, { arrayMode: false, fullResults: true });\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/neon-http/session.ts#L229-L234",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40neondatabase/serverless%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { neon } from \"@neondatabase/serverless\";\n\nconst sql = neon(process.env.DATABASE_URL);\nconst rows = await sql`SELECT ${1} AS value`;\nconsole.log(rows);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/@neondatabase%2Fserverless/1.2.1",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "knex",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/knex/knex"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/knex"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/knex/knex",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "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"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Unleash/unleash",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async getFeatureTypeCounts({\n        projectId,\n        archived,\n    }: IFeatureProjectUserParams): Promise<IFeatureTypeCount[]> {\n        const query = this.db<FeaturesTable>(TABLE)\n            .select('type')\n            .count('type')\n            .groupBy('type');\n\n        query\n            .where({\n                project: projectId,\n            })\n            .modify(FeatureToggleStore.filterByArchived, archived);\n\n        const result = await query;\n        return result.map((row) => ({\n            type: row.type!,\n            count: Number(row.count),\n        }));\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Unleash/unleash/blob/63624105864a9b85a62abdbd32d25a8e0d2ac0e8/src/lib/features/feature-toggle/feature-toggle-store.ts#L265-L285",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20knex%20for%20SQL%20query%20construction%20parameters%20and%20database%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": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import knex from \"knex\";\n\nconst db = knex({ client: \"pg\" });\nconst query = db(\"users\").select(\"id\").where(\"id\", 1).toSQL();\nconsole.log(query.sql, query.bindings);\nawait db.destroy();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://knexjs.org/guide/query-builder.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "typeorm",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/typeorm/typeorm"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/typeorm"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/typeorm/typeorm",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { DataSource } from \"typeorm\";\n\nconst source = new DataSource({ type: \"postgres\" });\nconst query = source.createQueryBuilder().select(\"u.id\").from(\"users\", \"u\")\n  .where(\"u.id = :id\", { id: 1 }).getQueryAndParameters();\nconsole.log(query);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://typeorm.io/docs/query-builder/select-query-builder",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=typeorm%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sequelize",
          "name": [
            {
              "t": "fact",
              "fact": "F261"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sequelize/sequelize"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sequelize"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F268"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/sequelize/sequelize",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Chocobozzz/PeerTube",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F279"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function createSimilarityAttribute (col: string, value: string): Fn {\n  return Sequelize.fn(\n    'similarity',\n    searchTrigramNormalizeCol(col),\n    searchTrigramNormalizeValue(value)\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Chocobozzz/PeerTube/blob/53928dd6242afb8f0d5cdd48ac20b3608342ab24/server/core/models/shared/query.ts#L27-L33",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F278"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sequelize%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Sequelize } from \"sequelize\";\n\nconst expression = Sequelize.fn(\"LOWER\", Sequelize.col(\"name\"));\nconsole.log(expression);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://sequelize.org/docs/v6/core-concepts/model-querying-basics/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F266"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript query builder library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#kysely",
          "label": [
            {
              "t": "text",
              "text": "Kysely"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits TypeScript projects that want a typed fluent SQL builder without an ORM. "
        },
        {
          "t": "link",
          "href": "#knex",
          "label": [
            {
              "t": "text",
              "text": "Knex"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits projects that need one builder across several database dialects. "
        },
        {
          "t": "link",
          "href": "#drizzle-orm",
          "label": [
            {
              "t": "text",
              "text": "Drizzle ORM"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits projects that want typed SQL clauses with an ORM layer."
        }
      ]
    },
    {
      "q": "Drizzle vs Prisma: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#drizzle-orm",
          "label": [
            {
              "t": "text",
              "text": "Drizzle ORM"
            }
          ]
        },
        {
          "t": "text",
          "text": " writes queries as typed SQL clauses against handwritten table descriptors. "
        },
        {
          "t": "link",
          "href": "#prisma-client",
          "label": [
            {
              "t": "text",
              "text": "Prisma Client"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates a model client from a schema and keeps raw SQL to composable helpers."
        }
      ]
    },
    {
      "q": "What is Knex?",
      "a": [
        {
          "t": "link",
          "href": "#knex",
          "label": [
            {
              "t": "text",
              "text": "Knex"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a SQL query and schema builder for PostgreSQL, MySQL, and other databases. It compiles fluent method chains to SQL and manages connection pools."
        }
      ]
    },
    {
      "q": "What is TypeORM?",
      "a": [
        {
          "t": "link",
          "href": "#typeorm",
          "label": [
            {
              "t": "text",
              "text": "TypeORM"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a data-mapper ORM for TypeScript that supports MySQL, PostgreSQL, and other databases. Its repositories expose a query builder for SELECT statements."
        }
      ]
    },
    {
      "q": "Kysely vs Drizzle: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#kysely",
          "label": [
            {
              "t": "text",
              "text": "Kysely"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a typed query builder and compiler with no model layer. "
        },
        {
          "t": "link",
          "href": "#drizzle-orm",
          "label": [
            {
              "t": "text",
              "text": "Drizzle ORM"
            }
          ]
        },
        {
          "t": "text",
          "text": " pairs a typed query builder with ORM features such as table descriptors."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, kysely",
      "display": "Kysely",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, kysely",
      "display": "110.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, kysely",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, kysely",
      "display": "0.29.6",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, kysely",
      "display": "v0.29.6",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, kysely",
      "display": "14.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Parameter binding, kysely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Transactions, kysely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "TypeScript support, kysely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "SQL without execution, kysely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, kysely",
      "display": "npm install kysely",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, kysely",
      "display": "Builds SQL with TypeScript checks for visible tables, columns, and selected result types.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, kysely",
      "display": "Checks selected columns and types",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, kysely",
      "display": "Catch references to tables or columns outside the query scope.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, kysely",
      "display": "Builds queries without database drivers",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, kysely",
      "display": "Use DummyDriver to compile SQL separately from database execution.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, kysely",
      "display": "Drivers decide runtime value types",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, kysely",
      "display": "The database interface must declare types that match the values the driver returns.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, kysely",
      "display": "Conditional selections need typed branching",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, kysely",
      "display": "Use $if when selected fields depend on runtime conditions.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, kysely",
      "display": "import { db } from './database'\nimport { PersonUpdate, Person, NewPerson } from './types'\n\nexport async function findPersonById(id: number) {\n  return await db.selectFrom('person')\n    .where('id', '=', id)\n    .selectAll()\n    .executeTakeFirst()\n}\n\nexport async function findPeople(criteria: Partial<Person>) {\n  let query = db.selectFrom('person')\n\n  if (criteria.id) {\n    query = query.where('id', '=', criteria.id) // Kysely is immutable, you must re-assign!\n  }\n\n  if (criteria.first_name) {\n    query = query.where('first_name', '=', criteria.first_name)\n  }\n\n  if (criteria.last_name !== undefined) {\n    query = query.where(\n      'last_name',\n      criteria.last_name === null ? 'is' : '=',\n      criteria.last_name\n    )\n  }\n\n  if (criteria.gender) {\n    query = query.where('gender', '=', criteria.gender)\n  }\n\n  if (criteria.created_at) {\n    query = query.where('created_at', '=', criteria.created_at)\n  }\n\n  return await query.selectAll().execute()\n}\n\nexport async function updatePerson(id: number, updateWith: PersonUpdate) {\n  await db.updateTable('person').set(updateWith).where('id', '=', id).execute()\n}\n\nexport async function createPerson(person: NewPerson) {\n  return await db.insertInto('person')\n    .values(person)\n    .returningAll()\n    .executeTakeFirstOrThrow()\n}\n\nexport async function deletePerson(id: number) {\n  return await db.deleteFrom('person').where('id', '=', id)\n    .returningAll()\n    .executeTakeFirst()\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, kysely",
      "display": "export function buildAnalyticsFilter(query: Query): RawBuilder<boolean> | undefined {\n  const filters: RawBuilder<boolean>[] = []\n  if (query.id) {\n    const filter = inFilter('index1', queryValues(query.id, true))\n    if (filter)\n      filters.push(filter)\n  }\n\n  const blobKeys = Object.keys(blobsMap) as BlobsKey[]\n  for (const blobKey of blobKeys) {\n    const queryKey = blobsMap[blobKey] as keyof Query\n    const value = query[queryKey]\n    if (typeof value === 'string' && value)\n      filters.push(inFilter(blobKey, queryValues(value))!)\n  }\n\n  if (query.startAt) {\n    const startTimestamp = Math.floor(Number(query.startAt))\n    filters.push(sql<boolean>`${sql.ref('timestamp')} >= toDateTime(${sql.lit(startTimestamp)})`)\n  }\n\n  if (query.endAt) {\n    const endTimestamp = Math.floor(Number(query.endAt))\n    filters.push(sql<boolean>`${sql.ref('timestamp')} <= toDateTime(${sql.lit(endTimestamp)})`)\n  }\n\n  return filters.length ? sql<boolean>`${sql.join(filters, sql` and `)}` : undefined\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, kysely",
      "display": "query-filter.ts · buildAnalyticsFilter()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, kysely",
      "display": "miantiao-me/Sink",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, miantiao-me/Sink",
      "display": "7.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, miantiao-me/Sink",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F27": {
      "label": "Library name, knex",
      "display": "Knex",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, knex",
      "display": "26.2M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, knex",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, knex",
      "display": "3.3.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, knex",
      "display": "v3.3.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, knex",
      "display": "20.3K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Parameter binding, knex",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Transactions, knex",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "TypeScript support, knex",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "SQL without execution, knex",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, knex",
      "display": "npm install knex",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, knex",
      "display": "Builds SQL queries through a composable JavaScript API across several database dialects.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, knex",
      "display": "Targets several SQL dialects",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, knex",
      "display": "Use PostgreSQL, MySQL, SQLite, or another supported backend.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, knex",
      "display": "Rolls back failed transactions",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, knex",
      "display": "Throw from the transaction handler to roll back its queries.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, knex",
      "display": "Mutable chains can confuse inference",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, knex",
      "display": "Keep type-changing selections in a chain when precise result types matter.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, knex",
      "display": "import { Knex, knex } from 'knex';\n\ninterface User {\n  id: number;\n  age: number;\n  name: string;\n  active: boolean;\n  departmentId: number;\n}\n\nconst config: Knex.Config = {\n  client: 'sqlite3',\n  connection: {\n    filename: './data.db',\n  },\n  useNullAsDefault: true,\n};\n\nconst knexInstance = knex(config);\n\nknexInstance<User>('users')\n  .select()\n  .then((users) => {\n    console.log(users);\n  })\n  .catch((err) => {\n    console.error(err);\n  })\n  .finally(() => {\n    knexInstance.destroy();\n  });\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, knex",
      "display": "async getFeatureTypeCounts({\n        projectId,\n        archived,\n    }: IFeatureProjectUserParams): Promise<IFeatureTypeCount[]> {\n        const query = this.db<FeaturesTable>(TABLE)\n            .select('type')\n            .count('type')\n            .groupBy('type');\n\n        query\n            .where({\n                project: projectId,\n            })\n            .modify(FeatureToggleStore.filterByArchived, archived);\n\n        const result = await query;\n        return result.map((row) => ({\n            type: row.type!,\n            count: Number(row.count),\n        }));\n    }\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, knex",
      "display": "feature-toggle-store.ts · getFeatureTypeCounts()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, knex",
      "display": "Unleash/unleash",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, Unleash/unleash",
      "display": "14.3K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, Unleash/unleash",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Library name, slonik",
      "display": "Slonik",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, slonik",
      "display": "1.1M",
      "asOf": "2026-11-15"
    },
    "F53": {
      "label": "License, slonik",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, slonik",
      "display": "49.13.0",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Undated package release, slonik",
      "display": "v49.13.0",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Repository stars, slonik",
      "display": "4.9K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Parameter binding, slonik",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Transactions, slonik",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "TypeScript support, slonik",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "SQL without execution, slonik",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, slonik",
      "display": "npm install slonik",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, slonik",
      "display": "Constructs parameterized PostgreSQL statements through SQL tags and executes them with a typed client.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, slonik",
      "display": "Keeps SQL visible in code",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, slonik",
      "display": "Compose tagged SQL fragments while binding interpolated values separately.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, slonik",
      "display": "Manages transaction cleanup",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, slonik",
      "display": "Resolve the transaction callback to commit or reject it to roll back.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, slonik",
      "display": "Targets PostgreSQL applications",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, slonik",
      "display": "Choose another query builder when targeting a different database.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, slonik",
      "display": "Runtime checks need an interceptor",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, slonik",
      "display": "Configure a result parser; sql.type alone supplies validation metadata.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, slonik",
      "display": "import { sql } from \"slonik\";\n\nconst query0 = sql.unsafe`SELECT ${\"foo\"} FROM bar`;\nconst query1 = sql.unsafe`SELECT ${\"baz\"} FROM (${query0})`;\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, slonik",
      "display": "async execute(\n    query: FindUsersQuery,\n  ): Promise<Result<Paginated<UserModel>, Error>> {\n    /**\n     * Constructing a query with Slonik.\n     * More info: https://contra.com/p/AqZWWoUB-writing-composable-sql-using-java-script\n     */\n    const statement = sql.type(userSchema)`\n         SELECT *\n         FROM users\n         WHERE\n           ${query.country ? sql`country = ${query.country}` : true} AND\n           ${query.street ? sql`street = ${query.street}` : true} AND\n           ${query.postalCode ? sql`\"postalCode\" = ${query.postalCode}` : true}\n         LIMIT ${query.limit}\n         OFFSET ${query.offset}`;\n\n    const records = await this.pool.query(statement);\n\n    return Ok(\n      new Paginated({\n        data: records.rows,\n        count: records.rowCount,\n        limit: query.limit,\n        page: query.page,\n      }),\n    );\n  }\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, slonik",
      "display": "find-users.query-handler.ts · execute()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, slonik",
      "display": "Sairyss/domain-driven-hexagon",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, Sairyss/domain-driven-hexagon",
      "display": "15.0K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, Sairyss/domain-driven-hexagon",
      "display": "Jun 2024",
      "asOf": "2024-06-11"
    },
    "F77": {
      "label": "Library name, ts-sql-query",
      "display": "ts-sql-query",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, ts-sql-query",
      "display": "49.0K",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "License, ts-sql-query",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, ts-sql-query",
      "display": "1.68.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Undated package release, ts-sql-query",
      "display": "v1.68.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Repository stars, ts-sql-query",
      "display": "319",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Parameter binding, ts-sql-query",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Transactions, ts-sql-query",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "TypeScript support, ts-sql-query",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "SQL without execution, ts-sql-query",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, ts-sql-query",
      "display": "npm install ts-sql-query",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, ts-sql-query",
      "display": "Builds typed dynamic SQL through declared connections and table mappings, without an ORM model layer.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, ts-sql-query",
      "display": "Skips optional search filters",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, ts-sql-query",
      "display": "Use IfValue methods to omit filters for missing form values.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, ts-sql-query",
      "display": "Supports Oracle and SQL Server",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, ts-sql-query",
      "display": "Build typed queries for these backends alongside PostgreSQL, MySQL, and SQLite.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, ts-sql-query",
      "display": "Connections belong to one request",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, ts-sql-query",
      "display": "Create a connection and its query runner for each concurrent request.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, ts-sql-query",
      "display": "Empty values remove conditional filters",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, ts-sql-query",
      "display": "Set allowEmptyString when empty text must count as a filter value.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, ts-sql-query",
      "display": "const firstNameContains = 'ohn';\nconst lastNameContains = null;\nconst birthdayIs = null;\nconst searchOrderBy = 'name insensitive, birthday asc nulls last';\n\nconst searchedCustomers = connection.selectFrom(tCustomer)\n    .where(\n                tCustomer.firstName.containsIfValue(firstNameContains)\n            .or(tCustomer.lastName.containsIfValue(lastNameContains))\n        ).and(\n            tCustomer.birthday.equalsIfValue(birthdayIs)\n        )\n    .select({\n        id: tCustomer.id,\n        name: tCustomer.firstName.concat(' ').concat(tCustomer.lastName),\n        birthday: tCustomer.birthday\n    })\n    .orderByFromString(searchOrderBy)\n    .executeSelectMany();\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Multi-dialect fluent queries",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose knex",
      "display": "a query API across several database backends",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "multi-dialect fluent queries",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider kysely",
      "display": "precise selected-result types drive the choice",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Typed selections and separate compilation",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose kysely",
      "display": "compile-time table and column checks",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "typed selections and separate compilation",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider knex",
      "display": "an existing application needs another supported SQL backend",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "PostgreSQL with explicit SQL",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose slonik",
      "display": "tagged statements and bound interpolated values",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "PostgreSQL with explicit SQL",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider knex",
      "display": "queries must target a backend beyond PostgreSQL",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Optional filters and mapped tables",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose ts-sql-query",
      "display": "conditional filters built from form values",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "optional filters and mapped tables",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "When to consider kysely",
      "display": "typed selections matter more than mapped IfValue filtering",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Page introduction",
      "display": "JavaScript query builder libraries let application developers construct SQL queries in application code.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: How do these libraries differ from an ORM?",
      "display": "Knex is a multi-dialect SQL query builder.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: How do these libraries differ from an ORM?",
      "display": "ts-sql-query explicitly describes itself as a query builder rather than an ORM.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: How do these libraries differ from an ORM?",
      "display": "Slonik instead exposes a PostgreSQL client that promotes writing raw SQL.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which Knex database backends are listed?",
      "display": "Knex lists PostgreSQL, MariaDB, MySQL, CockroachDB, MSSQL, SQLite, and Oracle.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Why can a Knex query lose precise TypeScript inference?",
      "display": "Its fluent API mutates the same builder, which does not always work well with inference; keep type-changing selections in one chain.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: How should applications inspect Knex SQL before executing it?",
      "display": "toSQL().toNative() exposes the SQL string and dialect-specific bindings used by the underlying driver.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: How should applications inspect Knex SQL before executing it?",
      "display": "toString is for debugging and should not supply executable database queries.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Kysely build SQL without a database driver?",
      "display": "A cold Kysely instance with DummyDriver compiles PostgreSQL SQL without connecting to a database.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can Kysely build SQL without a database driver?",
      "display": "Executing queries on a cold instance returns empty results rather than querying a database.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Kysely convert runtime values to the declared TypeScript types?",
      "display": "The driver decides runtime values; the application must match those values with the declared database types.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How does Kysely handle conditional selected fields?",
      "display": "Selections inside $if become optional output fields when their inclusion depends on a runtime condition.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Are interpolated Kysely values inserted directly into SQL?",
      "display": "Ordinary SQL-tag substitutions become database parameters.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Are interpolated Kysely values inserted directly into SQL?",
      "display": "Explicit ref, lit, raw, and related methods request different substitution behavior; the analytics example intentionally uses literal construction.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does a Slonik result schema enable runtime checks by itself?",
      "display": "Runtime query validation requires a configured result parser interceptor and a query schema; sql.type alone is insufficient.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: How should Slonik compose reusable query pieces?",
      "display": "Its SQL tags construct bound-parameter queries and can be nested to compose statements.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: How should Slonik compose reusable query pieces?",
      "display": "The selected import and nesting starter constructs query objects without a connection.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: How does ts-sql-query treat missing search values?",
      "display": "IfValue operations omit null, undefined and, by default, empty-string inputs; allowEmptyString changes the empty-string policy.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can one connection object serve concurrent requests?",
      "display": "ts-sql-query requires one connection object per request with its own query runner, even with a pool.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Can one connection object serve concurrent requests?",
      "display": "Kysely instead recommends a single instance per database in most cases.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Library name, drizzle-orm",
      "display": "Drizzle ORM",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, drizzle-orm",
      "display": "182.3M",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, drizzle-orm",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, drizzle-orm",
      "display": "0.45.4",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, drizzle-orm",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, drizzle-orm",
      "display": "npm install drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, drizzle-orm",
      "display": "import { QueryBuilder, pgTable, integer } from \"drizzle-orm/pg-core\";\n\nconst users = pgTable(\"users\", { id: integer(\"id\") });\nconst builder = new QueryBuilder();\nconst query = builder.select().from(users).toSQL();\nconsole.log(query.sql, query.params);\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Official description, drizzle-orm",
      "display": "Provides the Drizzle ORM package for SQL databases.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Quickstart source file, drizzle-orm",
      "display": "docs/goodies",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Repository stars, drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "MySQL dialect, drizzle-orm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Fluent SELECT/WHERE, drizzle-orm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Native SQL construction interface, drizzle-orm",
      "display": "Typed fluent SQL clauses,operators,and standalone PostgreSQL query builder with handwritten table descriptors; full ORM counter includes unrelated model/driver use.",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Connection-free SQL compilation, drizzle-orm",
      "display": "Standalone QueryBuilder.toSQL() returns sql/params without creating a database instance.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Setup and generated-client prerequisites, drizzle-orm",
      "display": "Supported Node/ESM host. PostgreSQL standalone builder and handwritten table descriptor; no database instance,driver,or schema execution required. Rendered official source document route retained; repository filename is not invented.",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Exact external query contract, drizzle-orm",
      "display": "Direct native lte import accepts the caller-supplied SQL column/expression and a compatible value returned by existing format callback. Existing Dayjs validation/date-only regex is host code,not more SDK calls. Native lte returns a SQL predicate object; no database connection is needed to construct this expression. Returns undefined for absent/invalid input; otherwise returns the inclusive lte predicate. Date-only strings shift the bound one day forward before formatting; an exact timestamp is unchanged. This preserves the original inclusive boundary,not a claimed exclusive end-of-day fix.",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Library name, postgres",
      "display": "postgres",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Monthly downloads, postgres",
      "display": "145.4M",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "License, postgres",
      "display": "Unlicense",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release, postgres",
      "display": "4.1.1",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release date, postgres",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Install, postgres",
      "display": "npm install postgres",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Quickstart, postgres",
      "display": "import postgres from \"postgres\";\n\nconst sql = postgres(process.env.DATABASE_URL);\nconst rows = await sql`select ${1} as value`;\nconsole.log(rows);\nawait sql.end();\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Official description, postgres",
      "display": "Provides a full-featured PostgreSQL client for Node.js, Bun, and Cloudflare Workers.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Quickstart source file, postgres",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Repository stars, postgres",
      "display": "8.8K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "MySQL dialect, postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Fluent SELECT/WHERE, postgres",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Native SQL construction interface, postgres",
      "display": "PostgreSQL client with documented nested tagged SQL fragments and dynamic identifiers/values;4.1 native methods checked rather than assuming3.4 API compatibility.",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Connection-free SQL compilation, postgres",
      "display": "Native describe() exposes generated SQL through the asynchronous query-description path; retained README/types do not establish a public connection-free compiler. Not marked impossible.",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Setup and generated-client prerequisites, postgres",
      "display": "Supported Node/ESM and valid PostgreSQL connection string. Creates pool lazily and executes one schema-independent SELECT when run; no connection/query executed here.",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Exact external query contract, postgres",
      "display": "Actual PostgresJsSession holds a Sql client type imported from postgres. Current4.1.1 unsafe(query,parameters) accepts trusted SQL text and separately supplied compatible parameters. The original generic result type is host TypeScript context; no broader historical type-checking guarantee. Unlike tagged templates,the raw SQL text itself must not concatenate untrusted input. Returns PendingQuery whose awaited result is RowList of object rows; current unsafe generic/type and README result semantics retained. This method does not call values(),so it does not switch to arrays-per-row. Requires a configured compatible PostgreSQL server when executed.",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project function, postgres",
      "display": "queryObjects<T extends Row>(\n\t\tquery: string,\n\t\tparams: unknown[],\n\t): Promise<RowList<T[]>> {\n\t\treturn this.client.unsafe(query, params as any[]);\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Project source file, postgres",
      "display": "drizzle-orm/src/postgres-js/session.ts",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project full_name, postgres",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project stargazers_count, postgres",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Library name, kysely",
      "display": "kysely",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Monthly downloads, kysely",
      "display": "113.4M",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "License, kysely",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Package release, kysely",
      "display": "0.29.9",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Package release date, kysely",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Install, kysely",
      "display": "npm install kysely pg",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Quickstart, kysely",
      "display": "import { Kysely, PostgresDialect } from \"kysely\";\nimport pg from \"pg\";\n\nconst db = new Kysely({\n  dialect: new PostgresDialect({ pool: new pg.Pool() }),\n});\nconst query = db.selectFrom(\"users\").select(\"id\").compile();\nconsole.log(query.sql, query.parameters);\nawait db.destroy();\n",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Repository stars, kysely",
      "display": "14.4K",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "MySQL dialect, kysely",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Fluent SELECT/WHERE, kysely",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Native SQL construction interface, kysely",
      "display": "Typed fluent SQL builder and compiler,with explicit dialect/driver and optional codegen; consumer example uses public Compilable contract.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Connection-free SQL compilation, kysely",
      "display": "Compilable.compile() returns sql plus parameters; compile is distinct from executing the query.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Setup and generated-client prerequisites, kysely",
      "display": "Node >=22.0.0,ESM,and pg companion driver. This compiles a handwritten logical users query without sending it to PostgreSQL; table existence and connection become requirements when executing. JavaScript recipe,not asserted a complete typed Database interface.",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Exact external query contract, kysely",
      "display": "Original input is the public Compilable type imported from kysely. Current compile() takes no arguments and returns CompiledQuery with sql string and readonly parameters. The caller must pass a genuine compiled-query-capable Kysely object; no ClickHouse execution or custom host dialect is assumed independently verified. Returns compiled.sql only if parameter list is empty; otherwise throws original analytics no-parameters error. No SQL execution. Native parameter rejection is host policy,not a limitation that Kysely lacks parameterized queries.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Published Node requirement, kysely",
      "display": ">=22.0.0",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project function, kysely",
      "display": "export function compileAnalyticsQuery(query: Compilable): string {\n  const compiled = query.compile()\n  if (compiled.parameters.length !== 0)\n    throw new Error('Analytics SQL queries must not contain parameters')\n\n  return compiled.sql\n}\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project source file, kysely",
      "display": "server/utils/analytics-sql.ts",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project full_name, kysely",
      "display": "miantiao-me/Sink",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project stargazers_count, kysely",
      "display": "7.3K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Library name, @prisma/client",
      "display": "Prisma Client",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Monthly downloads, @prisma/client",
      "display": "95.8M",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "License, @prisma/client",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Package release, @prisma/client",
      "display": "7.10.1",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Package release date, @prisma/client",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Install, @prisma/client",
      "display": "npm install @prisma/client@7.10.1",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Quickstart, @prisma/client",
      "display": "import { Prisma } from \"./generated/prisma/client\";\n\nconst query = Prisma.sql`SELECT ${1} AS value`;\nconsole.log(query.text, query.values);\n",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Official description, @prisma/client",
      "display": "Provides an auto-generated, type-safe ORM client for Node.js.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart source file, @prisma/client",
      "display": "src/index.ts",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Repository stars, @prisma/client",
      "display": "47.7K",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "MySQL dialect, @prisma/client",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Fluent SELECT/WHERE, @prisma/client",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Native SQL construction interface, @prisma/client",
      "display": "Generated model client plus documented composable Prisma.sql/join/empty SQL-token helpers. Whole ORM count does not measure SQL-helper adoption.",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Connection-free SQL compilation, @prisma/client",
      "display": "SQL Template Tag object exposes dialect-placeholder strings and values; public generated Prisma namespace is a prerequisite,not a raw network query.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Setup and generated-client prerequisites, @prisma/client",
      "display": "Supported server-only Node/TypeScript host,matching Prisma7.10.1 CLI/runtime,and a generated public client exporting Prisma at configured ./src/generated/prisma/client. This builds a SQL token only,without instantiating PrismaClient or contacting a database. Generation prerequisite is explicit rather than pretending @prisma/client is generation-free.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Exact external query contract, @prisma/client",
      "display": "Actual db barrel reexports @prisma/client. Current namespace SQL Template Tag helpers sql and empty accept nested Sql fragments and separately bound scalar values. Original optional fields,dataset join,and pagination are constant SQL fragments; projectId,limit,and offset are parameters. Existing filter/search helpers must return compatible native Prisma.Sql tokens; SQL identifiers are fixed original source,not substituted as values. No PrismaClient constructor from the older host is certified upgraded. Returns a reusable Prisma.Sql object,not rows or an executed request. Optional empty clauses and nested pagination preserve parameter ordering; downstream caller chooses execution. Original trusted filter/column/search helper contracts remain prerequisites. Whole source is preserved,including projection/order semantics.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Published Node requirement, @prisma/client",
      "display": "^20.19 || ^22.12 || >=24.0",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Library name, @neondatabase/serverless",
      "display": "@neondatabase/serverless",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Monthly downloads, @neondatabase/serverless",
      "display": "28.6M",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "License, @neondatabase/serverless",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release, @neondatabase/serverless",
      "display": "1.2.1",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Package release date, @neondatabase/serverless",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Install, @neondatabase/serverless",
      "display": "npm install @neondatabase/serverless",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Quickstart, @neondatabase/serverless",
      "display": "import { neon } from \"@neondatabase/serverless\";\n\nconst sql = neon(process.env.DATABASE_URL);\nconst rows = await sql`SELECT ${1} AS value`;\nconsole.log(rows);\n",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Official description, @neondatabase/serverless",
      "display": "Adapts node-postgres for serverless environments.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart source file, @neondatabase/serverless",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Repository stars, @neondatabase/serverless",
      "display": "557",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "MySQL dialect, @neondatabase/serverless",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Fluent SELECT/WHERE, @neondatabase/serverless",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Native SQL construction interface, @neondatabase/serverless",
      "display": "PostgreSQL HTTP/WebSocket client with fully composable parameterized SQL templates; query() executes text/params with explicit result modes.",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Connection-free SQL compilation, @neondatabase/serverless",
      "display": "Reusable SQL templates are documented,but a documented connection-free rendered-SQL accessor is unresolved; query() itself executes.",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Setup and generated-client prerequisites, @neondatabase/serverless",
      "display": "Supported Node/ESM or edge fetch runtime and valid authorized PostgreSQL/Neon HTTP endpoint connection string. One native schema-independent SELECT; HTTP query API,not Pool WebSocket setup.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Exact external query contract, @neondatabase/serverless",
      "display": "Original NeonHttpSession accepts NeonQueryFunction imported from the selected package. Its constructor sets clientQuery to client.query for current1.x; the fallback root function is explicitly only for older versions and is not the selected branch. Native query takes parameterized SQL string,values array,and {arrayMode:false,fullResults:true}. No plain-string invocation of the current tag function is asserted valid. Returns native NeonQueryPromise resolving to full result metadata with rows as objects,not an array-only result or arrays-per-row. Host must provide valid SQL/parameter values and an authorized PostgreSQL endpoint. No transaction/session affinity or live database guarantee.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, @neondatabase/serverless",
      "display": "async queryObjects(\n\t\tquery: string,\n\t\tparams: unknown[],\n\t): Promise<FullQueryResults<false>> {\n\t\treturn this.clientQuery(query, params, { arrayMode: false, fullResults: true });\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, @neondatabase/serverless",
      "display": "drizzle-orm/src/neon-http/session.ts",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, @neondatabase/serverless",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, @neondatabase/serverless",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, knex",
      "display": "knex",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, knex",
      "display": "27.1M",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, knex",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, knex",
      "display": "3.3.0",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, knex",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, knex",
      "display": "npm install knex",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, knex",
      "display": "import knex from \"knex\";\n\nconst db = knex({ client: \"pg\" });\nconst query = db(\"users\").select(\"id\").where(\"id\", 1).toSQL();\nconsole.log(query.sql, query.bindings);\nawait db.destroy();\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, knex",
      "display": "20.3K",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "MySQL dialect, knex",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Fluent SELECT/WHERE, knex",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Native SQL construction interface, knex",
      "display": "Multi-dialect fluent SQL/schema builder with compilation,connection pooling,and optional query execution via separately configured driver.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Connection-free SQL compilation, knex",
      "display": "toSQL() exposes native SQL and bindings; compilation configuration is distinct from a live database connection.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Setup and generated-client prerequisites, knex",
      "display": "Supported Node/ESM. PostgreSQL compiler configuration without connection sends no query; actual execution separately requires pg driver,connection,and table schema.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Exact external query contract, knex",
      "display": "Original Db is native Knex type/factory from same pinned db module and is assigned to this.db in constructor. Current table query supports select/count/groupBy,object where,and modify(callback,...args). Original static filterByArchived helper is a host callback,not another SDK call. features table/type/project and compatible PostgreSQL schema remain host prerequisites. Awaiting the Knex query resolves aggregate rows. PostgreSQL count can be string or number; original Number(row.count) explicitly normalizes it. Returns type/count objects rather than promising native bigint precision. No schema or query executed.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, knex",
      "display": "async getFeatureTypeCounts({\n        projectId,\n        archived,\n    }: IFeatureProjectUserParams): Promise<IFeatureTypeCount[]> {\n        const query = this.db<FeaturesTable>(TABLE)\n            .select('type')\n            .count('type')\n            .groupBy('type');\n\n        query\n            .where({\n                project: projectId,\n            })\n            .modify(FeatureToggleStore.filterByArchived, archived);\n\n        const result = await query;\n        return result.map((row) => ({\n            type: row.type!,\n            count: Number(row.count),\n        }));\n    }\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, knex",
      "display": "src/lib/features/feature-toggle/feature-toggle-store.ts",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, knex",
      "display": "Unleash/unleash",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, knex",
      "display": "14.3K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, typeorm",
      "display": "typeorm",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, typeorm",
      "display": "26.9M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, typeorm",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, typeorm",
      "display": "1.1.3",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, typeorm",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, typeorm",
      "display": "npm install typeorm pg",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, typeorm",
      "display": "import { DataSource } from \"typeorm\";\n\nconst source = new DataSource({ type: \"postgres\" });\nconst query = source.createQueryBuilder().select(\"u.id\").from(\"users\", \"u\")\n  .where(\"u.id = :id\", { id: 1 }).getQueryAndParameters();\nconsole.log(query);\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, typeorm",
      "display": "Maps data with a data-mapper ORM for TypeScript across MySQL, PostgreSQL, SQL Server, and other databases.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, typeorm",
      "display": "docs/query-builder/select-query-builder",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, typeorm",
      "display": "36.7K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "MySQL dialect, typeorm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Fluent SELECT/WHERE, typeorm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Native SQL construction interface, typeorm",
      "display": "ORM with public DataSource/Repository SELECT query builders and recursive Brackets expressions; ORM count includes unrelated model operations.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Connection-free SQL compilation, typeorm",
      "display": "getSql/getQueryAndParameters expose compiled SQL; raw-table construction differs from entity metadata setup and executing.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Setup and generated-client prerequisites, typeorm",
      "display": "Supported Node/ESM and pg companion driver. Uses a raw table path,not unregistered entity metadata; SQL construction only,without initialize/execute. Actual database execution additionally needs valid connection and schema.",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Exact external query contract, typeorm",
      "display": "Actual imports Brackets,WhereExpressionBuilder,and SelectQueryBuilder from typeorm. Current Brackets accepts a where-builder callback; andWhere/orWhere accept that Brackets instance. Native callback provides qb1 with the public where-expression interface; recursive grouping and condition application are original Vendure helpers. No certification of older host DataSource configuration or internal driver imports. Mutates supplied builder with grouped boolean conditions and returns void. Empty groups do nothing. Branch selects AND/OR by host LogicalOperator; no rows returned or database execution. Actual qb receiver public type and callback binding retained.",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Published Node requirement, typeorm",
      "display": "^20.19.0 || ^22.13.0 || >=24.11.0",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Library name, sequelize",
      "display": "Sequelize",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Monthly downloads, sequelize",
      "display": "15.8M",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "License, sequelize",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release, sequelize",
      "display": "6.37.8",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Package release date, sequelize",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Install, sequelize",
      "display": "npm install sequelize",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Quickstart, sequelize",
      "display": "import { Sequelize } from \"sequelize\";\n\nconst expression = Sequelize.fn(\"LOWER\", Sequelize.col(\"name\"));\nconsole.log(expression);\n",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Official description, sequelize",
      "display": "Provides a promise-based Node.js ORM for PostgreSQL, MySQL, MariaDB, SQLite, and SQL Server.",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Quickstart source file, sequelize",
      "display": "docs/v6/core-concepts/model-querying-basics",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Repository stars, sequelize",
      "display": "30.4K",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "MySQL dialect, sequelize",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Fluent SELECT/WHERE, sequelize",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Native SQL construction interface, sequelize",
      "display": "ORM with structured model query options and composable fn/col/where SQL expressions; native SQL construction is not limited to a named query-builder class.",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Connection-free SQL compilation, sequelize",
      "display": "Model query/expression construction is documented; a supported public connection-free full-SQL renderer remains unresolved. Private query-generator internals are not silently promoted.",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Setup and generated-client prerequisites, sequelize",
      "display": "Supported Node/ESM. Builds a native SQL expression without constructing a Sequelize connection; actual Model.findAll execution requires dialect driver,instance,and model schema. No unsupported off-line SQL rendering promise.",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Exact external query contract, sequelize",
      "display": "Actual Sequelize import comes from sequelize. Current fn(functionName,...args) builds a SQL function expression and accepts nested fn/col expression objects. Same-file original normalization helpers return nested lower/immutable_unaccent fn expressions and a native col token. Column name is treated as a column identifier through col; similarity and immutable_unaccent must exist in the chosen PostgreSQL host. Returns a Fn SQL-expression object for the surrounding query,not a similarity score or executed search. Host extensions/UDFs and model query consuming the attribute remain prerequisites; no guarantee arbitrary SQL backends implement these PostgreSQL functions.",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Project function, sequelize",
      "display": "function createSimilarityAttribute (col: string, value: string): Fn {\n  return Sequelize.fn(\n    'similarity',\n    searchTrigramNormalizeCol(col),\n    searchTrigramNormalizeValue(value)\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Project source file, sequelize",
      "display": "server/core/models/shared/query.ts",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Project full_name, sequelize",
      "display": "Chocobozzz/PeerTube",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Project stargazers_count, sequelize",
      "display": "15.4K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript query builder libraries Knex Kysely Slonik ts-sql-query code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
