{
  "id": "task_libraries:sqlite/javascript",
  "path": "/exapedia/javascript-sqlite-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript SQLite libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript SQLite libraries run SQLite, a database engine that keeps a whole database in one file, from Node.js, the browser, or a mobile app. A library either binds to the native engine or runs a WebAssembly build inside the browser. These libraries let desktop apps, mobile apps, and AI agents keep structured local data without a database server."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript SQLite libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#better-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sql-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#libsql-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlitethree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#expo-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlite-wasm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#op-engineering-op-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "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": "#better-sqlite",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Browser execution",
            "Automatic file persistence"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#better-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sql-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#libsql-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlitethree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#expo-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlite-wasm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#op-engineering-op-sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sqlite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "better-sqlite",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/WiseLibs/better-sqlite3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/better-sqlite3"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/WiseLibs/better-sqlite3/master/docs/api.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/WiseLibs/better-sqlite3/master/docs/api.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "get(placeholderValues?: Record<string, unknown>): T['get'] {\n\t\tconst params = fillPlaceholders(this.query.params, placeholderValues ?? {});\n\t\tthis.logger.logQuery(this.query.sql, params);\n\n\t\tconst { fields, stmt, joinsNotNullableMap, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn stmt.get(...params);\n\t\t}\n\n\t\tconst row = stmt.raw().get(...params) as unknown[];\n\n\t\tif (!row) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper([row]) as T['get'];\n\t\t}\n\n\t\treturn mapResultRow(fields!, row, joinsNotNullableMap);\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/better-sqlite3/session.ts#L150",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=TypeScript%20projects%20using%20better-sqlite3%20for%20native%20statements%2C%20bound%20rows%2C%20explicit%20cleanup%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": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const Database = require(\"better-sqlite3\");\nconst db = new Database(\":memory:\");\nconsole.log(db.prepare(\"SELECT 1 AS value\").get());\ndb.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/WiseLibs/better-sqlite3/master/docs/api.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "api.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sql-js",
          "name": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sql-js/sql.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sql.js"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/sql-js/sql.js/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/sql-js/sql.js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F142"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "all(placeholderValues?: Record<string, unknown>): T['all'] {\n\t\tconst stmt = this.client.prepare(this.query.sql);\n\n\t\tconst { fields, joinsNotNullableMap, logger, query, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst params = fillPlaceholders(query.params, placeholderValues ?? {});\n\t\t\tlogger.logQuery(query.sql, params);\n\t\t\tstmt.bind(params as BindParams);\n\t\t\tconst rows: unknown[] = [];\n\t\t\twhile (stmt.step()) {\n\t\t\t\trows.push(stmt.getAsObject());\n\t\t\t}\n\n\t\t\tstmt.free();\n\n\t\t\treturn rows;\n\t\t}\n\n\t\tconst rows = this.values(placeholderValues) as unknown[][];\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows, normalizeFieldValue) as T['all'];\n\t\t}\n\n\t\treturn rows.map((row) => mapResultRow(fields!, row.map((v) => normalizeFieldValue(v)), joinsNotNullableMap));\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/sql-js/session.ts#L118",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=TypeScript%20projects%20using%20sql.js%20for%20native%20statements%2C%20bound%20rows%2C%20explicit%20cleanup%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": "F142"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const initSqlJs = require(\"sql.js\");\ninitSqlJs().then(SQL => {\n  const db = new SQL.Database();\n  console.log(db.exec(\"SELECT 1 AS value\"));\n  db.close();\n}).catch(console.error);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/sql-js/sql.js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "libsql-client",
          "name": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tursodatabase/libsql-client-ts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@libsql/client"
            },
            {
              "label": "Docs",
              "href": "https://docs.turso.tech/sdk/ts/reference"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.turso.tech/sdk/ts/reference",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F158"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "override async transaction<T>(\n\t\ttransaction: (db: LibSQLTransaction<TFullSchema, TSchema>) => T | Promise<T>,\n\t\t_config?: SQLiteTransactionConfig,\n\t): Promise<T> {\n\t\t// TODO: support transaction behavior\n\t\tconst libsqlTx = await this.client.transaction();\n\t\tconst session = new LibSQLSession<TFullSchema, TSchema>(\n\t\t\tthis.client,\n\t\t\tthis.dialect,\n\t\t\tthis.schema,\n\t\t\tthis.options,\n\t\t\tlibsqlTx,\n\t\t);\n\t\tconst tx = new LibSQLTransaction<TFullSchema, TSchema>('async', this.dialect, session, this.schema);\n\t\ttry {\n\t\t\tconst result = await transaction(tx);\n\t\t\tawait libsqlTx.commit();\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\tawait libsqlTx.rollback();\n\t\t\tthrow err;\n\t\t}\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/libsql/session.ts#L107",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=TypeScript%20projects%20using%20%40libsql/client%20for%20native%20statements%2C%20bound%20rows%2C%20explicit%20cleanup%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": "F158"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createClient } from \"@libsql/client\";\nconst client = createClient({ url: \":memory:\" });\nconsole.log((await client.execute(\"SELECT 1 AS value\")).rows);\nclient.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.turso.tech/sdk/ts/reference",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.mjs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sqlitethree",
          "name": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/TryGhost/node-sqlite3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sqlite3"
            },
            {
              "label": "Docs",
              "href": "https://github.com/TryGhost/node-sqlite3/wiki/API"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/node-sqlite3/wiki/API",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/knex/knex",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "_query(connection, obj) {\n    if (!obj.sql) throw new Error('The query is empty');\n\n    const { method } = obj;\n    let callMethod;\n    switch (method) {\n      case 'insert':\n      case 'update':\n        callMethod = obj.returning ? 'all' : 'run';\n        break;\n      case 'counter':\n      case 'del':\n        callMethod = 'run';\n        break;\n      default:\n        callMethod = 'all';\n    }\n    return new Promise(function (resolver, rejecter) {\n      if (!connection || !connection[callMethod]) {\n        return rejecter(\n          new Error(`Error calling ${callMethod} on connection.`)\n        );\n      }\n      connection[callMethod](obj.sql, obj.bindings, function (err, response) {\n        if (err) return rejecter(err);\n        obj.response = response;\n\n        // We need the context here, as it contains\n        // the \"this.lastID\" or \"this.changes\"\n        obj.context = this;\n\n        return resolver(obj);\n      });\n    });\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/knex/knex/blob/e25d54bcb707714a17f5a5744eba5c4246bb4d1d/lib/dialects/sqlite3/index.js#L134",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sqlite3%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const sqlite3 = require(\"sqlite3\");\nconst db = new sqlite3.Database(\":memory:\", err => {\n  if (err) throw err;\n  db.get(\"SELECT 1 AS value\", [], (err, row) => {\n    if (err) throw err;\n    console.log(row);\n    db.close();\n  });\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/node-sqlite3/wiki/API",
                  "label": [
                    {
                      "t": "text",
                      "text": "API.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "expo-sqlite",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/expo/expo"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/expo-sqlite"
            },
            {
              "label": "Docs",
              "href": "https://docs.expo.dev/versions/latest/sdk/sqlite/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "all(placeholderValues?: Record<string, unknown>): T['all'] {\n\t\tconst { fields, joinsNotNullableMap, query, logger, stmt, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst params = fillPlaceholders(query.params, placeholderValues ?? {});\n\t\t\tlogger.logQuery(query.sql, params);\n\t\t\treturn stmt.executeSync(params as any[]).getAllSync();\n\t\t}\n\n\t\tconst rows = this.values(placeholderValues) as unknown[][];\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows) as T['all'];\n\t\t}\n\t\treturn rows.map((row) => mapResultRow(fields!, row, joinsNotNullableMap));\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/drizzle-team/drizzle-orm/blob/3bcb6a27ec1f4f1602aeeb0af2f5aec61010d72d/drizzle-orm/src/expo-sqlite/session.ts#L127",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=expo-sqlite%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as SQLite from \"expo-sqlite\";\nasync function firstQuery() {\n  const db = await SQLite.openDatabaseAsync(\"demo.db\");\n  console.log(await db.getFirstAsync(\"SELECT 1 AS value\"));\n  await db.closeAsync();\n}\nfirstQuery().catch(console.error);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
                  "label": [
                    {
                      "t": "text",
                      "text": "sqlite.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sqlite-wasm",
          "name": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sqlite/sqlite-wasm"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@sqlite.org/sqlite-wasm"
            },
            {
              "label": "Docs",
              "href": "https://sqlite.org/wasm/doc/trunk/api-oo1.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F88"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://sqlite.org/wasm/doc/trunk/api-oo1.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "all(...params: unknown[]): unknown[] {\n        if (this.isFinalized) {\n            throw new Error(\"Cannot call all() on finalized statement\");\n        }\n\n        this.bindParams(params);\n        const results: unknown[] = [];\n        try {\n            while (this.stmt.step()) {\n                if (this.isPluckMode) {\n                    // In pluck mode, return only the first column value for each row\n                    const row = this.stmt.get([]);\n                    if (Array.isArray(row) && row.length > 0) {\n                        results.push(row[0]);\n                    }\n                } else {\n                    results.push(this.isRawMode ? this.stmt.get([]) : this.stmt.get({}));\n                }\n            }\n            return results;\n        } finally {\n            this.stmt.reset();\n        }\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium/blob/3c60eac13f66161492334efefa2613923ebe541f/apps/standalone/src/lightweight/sql_provider.ts#L71",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=TypeScript%20projects%20using%20%40sqlite.org/sqlite-wasm%20for%20native%20statements%2C%20bound%20rows%2C%20explicit%20cleanup%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": "F210"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import sqlite3InitModule from \"@sqlite.org/sqlite-wasm\";\nconst sqlite3 = await sqlite3InitModule();\nconst db = new sqlite3.oo1.DB(\":memory:\");\nconsole.log(db.selectValue(\"SELECT 1\"));\ndb.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://sqlite.org/wasm/doc/trunk/api-oo1.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "main.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "op-engineering-op-sqlite",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/OP-Engineering/op-sqlite"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@op-engineering/op-sqlite"
            },
            {
              "label": "Docs",
              "href": "https://op-engineering.github.io/op-sqlite/docs/api/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://op-engineering.github.io/op-sqlite/docs/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/garden-co/classic-jazz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "public async query<T>(sql: string, params?: unknown[]): Promise<T[]> {\n    if (!this.db) {\n      throw new Error(\"Database not initialized\");\n    }\n\n    const result = await this.db.execute(sql, params as any[]);\n\n    return result.rows as T[];\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/garden-co/classic-jazz/blob/e51832fd1f495a771d89f9c26aa9f6a62c3e0690/packages/jazz-tools/src/react-native/storage/op-sqlite-adapter.ts#L68",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40op-engineering/op-sqlite%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { open } from \"@op-engineering/op-sqlite\";\nasync function firstQuery() {\n  const db = open({ name: \"demo.sqlite\" });\n  console.log((await db.execute(\"SELECT 1 AS value\")).rows);\n  db.close();\n}\nfirstQuery().catch(console.error);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://op-engineering.github.io/op-sqlite/docs/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sqlite",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/kriasoft/node-sqlite"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sqlite"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/kriasoft/node-sqlite/master/README.md"
            }
          ],
          "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://raw.githubusercontent.com/kriasoft/node-sqlite/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/continuedev/continue",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F260"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function runSqliteMigrations(db: Database) {\n  await new Promise((resolve) => {\n    void migrate(\n      \"sqlite_modify_docs_columns_and_copy_to_config\",\n      async () => {\n        try {\n          const pragma = await db.all(\n            `PRAGMA table_info(${DocsService.sqlitebTableName});`,\n          );\n\n          const hasFaviconCol = pragma.some(\n            (pragma) => pragma.name === \"favicon\",\n          );\n          if (!hasFaviconCol) {\n            await db.exec(\n              `ALTER TABLE ${DocsService.sqlitebTableName} ADD COLUMN favicon BLOB;`,\n            );\n          }\n\n          const hasBaseUrlCol = pragma.some(\n            (pragma) => pragma.name === \"baseUrl\",\n          );\n          if (hasBaseUrlCol) {\n            await db.exec(\n              `ALTER TABLE ${DocsService.sqlitebTableName} RENAME COLUMN baseUrl TO startUrl;`,\n            );\n          }\n\n          const needsToUpdateConfig = !hasFaviconCol || hasBaseUrlCol;\n          if (needsToUpdateConfig) {\n            const sqliteDocs = await db.all<\n              Array<Pick<SqliteDocsRow, \"title\" | \"startUrl\">>\n            >(`SELECT title, startUrl FROM ${DocsService.sqlitebTableName}`);\n            editConfigFile(\n              (config) => ({\n                ...config,\n                docs: [...(config.docs || []), ...sqliteDocs],\n              }),\n              (config) => ({\n                ...config,\n                docs: [\n                  ...(config.docs || []),\n                  ...sqliteDocs.map((doc) => ({\n                    name: doc.title,\n                    startUrl: doc.startUrl,\n                  })),\n                ],\n              }),\n            );\n          }\n        } finally {\n          resolve(undefined);\n        }\n      },\n      () => resolve(undefined),\n    );\n  });\n\n  await new Promise((resolve) => {\n    void migrate(\n      \"sqlite_delete_docs_with_no_embeddingsProviderId\",\n      async () => {\n        try {\n          const pragma = await db.all(\n            `PRAGMA table_info(${DocsService.sqlitebTableName});`,\n          );\n          const hasEmbeddingsProviderColumn = pragma.some(\n            (pragma) => pragma.name === \"embeddingsProviderId\",\n          );\n          if (!hasEmbeddingsProviderColumn) {\n            // gotta just delete in this case since old docs will be unusable anyway\n            await db.exec(`DROP TABLE ${DocsService.sqlitebTableName};`);\n          }\n        } finally {\n          resolve(undefined);\n        }\n      },\n      () => resolve(undefined),\n    );\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/core/indexing/docs/migrations.ts#L28",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sqlite%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import sqlite3 from \"sqlite3\";\nimport { open } from \"sqlite\";\nconst db = await open({ filename: \":memory:\", driver: sqlite3.Database });\nconsole.log(await db.get(\"SELECT 1 AS value\"));\nawait db.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/kriasoft/node-sqlite/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript SQLite library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#better-sqlite",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Node.js apps that want fast synchronous queries on a local file. "
        },
        {
          "t": "link",
          "href": "#sql-js",
          "label": [
            {
              "t": "text",
              "text": "sql.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#sqlite-wasm",
          "label": [
            {
              "t": "text",
              "text": "SQLite Wasm"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit browser apps. "
        },
        {
          "t": "link",
          "href": "#expo-sqlite",
          "label": [
            {
              "t": "text",
              "text": "Expo SQLite"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#op-engineering-op-sqlite",
          "label": [
            {
              "t": "text",
              "text": "OP-SQLite"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit React Native apps."
        }
      ]
    },
    {
      "q": "What is libSQL?",
      "a": [
        {
          "t": "text",
          "text": "libSQL is a fork of SQLite that also runs as a remote database service. The "
        },
        {
          "t": "link",
          "href": "#libsql-client",
          "label": [
            {
              "t": "text",
              "text": "libSQL client"
            }
          ]
        },
        {
          "t": "text",
          "text": " connects to local libSQL files and to remote libSQL services from one API."
        }
      ]
    },
    {
      "q": "better-sqlite3 vs sqlite3: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#better-sqlite",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs queries synchronously with reusable prepared statements. "
        },
        {
          "t": "link",
          "href": "#sqlitethree",
          "label": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ]
        },
        {
          "t": "text",
          "text": " uses callbacks for its run, get, and all operations."
        }
      ]
    },
    {
      "q": "How do I use SQLite in the browser?",
      "a": [
        {
          "t": "link",
          "href": "#sql-js",
          "label": [
            {
              "t": "text",
              "text": "sql.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs SQLite through WebAssembly with an in-memory database that the app imports and exports as bytes. "
        },
        {
          "t": "link",
          "href": "#sqlite-wasm",
          "label": [
            {
              "t": "text",
              "text": "SQLite Wasm"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the official WebAssembly build, with persistent storage in a worker."
        }
      ]
    },
    {
      "q": "What is Expo SQLite?",
      "a": [
        {
          "t": "link",
          "href": "#expo-sqlite",
          "label": [
            {
              "t": "text",
              "text": "Expo SQLite"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the Expo module for SQLite in React Native apps. It offers asynchronous and synchronous query APIs, with data that persists on the device."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, better-sqlite3",
      "display": "better-sqlite3",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, better-sqlite3",
      "display": "62.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, better-sqlite3",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, better-sqlite3",
      "display": "13.0.3",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, better-sqlite3",
      "display": "v13.0.3",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, better-sqlite3",
      "display": "7.6K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Runs in Node.js, better-sqlite3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Prepared statements, better-sqlite3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Transactions, better-sqlite3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, better-sqlite3",
      "display": "npm install better-sqlite3",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, better-sqlite3",
      "display": "Provides synchronous SQLite database and prepared statement APIs for Node.js.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, better-sqlite3",
      "display": "Reuses prepared statement objects",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, better-sqlite3",
      "display": "Prepare a statement once, then bind values for each execution.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, better-sqlite3",
      "display": "Groups synchronous work into transactions",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, better-sqlite3",
      "display": "Commit successful callbacks and roll back callbacks that throw.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, better-sqlite3",
      "display": "Transaction callbacks cannot await",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, better-sqlite3",
      "display": "Keep asynchronous work outside the transaction callback.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, better-sqlite3",
      "display": "Large integers need BigInt handling",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, better-sqlite3",
      "display": "Use BigInt when stored integers exceed JavaScript number precision.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, better-sqlite3",
      "display": "const Database = require('better-sqlite3');\nconst db = new Database('foobar.db', { verbose: console.log });\n\nconst migration = fs.readFileSync('migrate-schema.sql', 'utf8');\ndb.exec(migration);\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, better-sqlite3",
      "display": "get(placeholderValues?: Record<string, unknown>): T['get'] {\n\t\tconst params = fillPlaceholders(this.query.params, placeholderValues ?? {});\n\t\tthis.logger.logQuery(this.query.sql, params);\n\n\t\tconst { fields, stmt, joinsNotNullableMap, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn stmt.get(...params);\n\t\t}\n\n\t\tconst row = stmt.raw().get(...params) as unknown[];\n\n\t\tif (!row) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper([row]) as T['get'];\n\t\t}\n\n\t\treturn mapResultRow(fields!, row, joinsNotNullableMap);\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, better-sqlite3",
      "display": "session.ts · get()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, better-sqlite3",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Library name, sql.js",
      "display": "sql.js",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, sql.js",
      "display": "23.1M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, sql.js",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, sql.js",
      "display": "1.16.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, sql.js",
      "display": "v1.16.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, sql.js",
      "display": "13.7K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Runs in Node.js, sql.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Runs in browsers, sql.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Prepared statements, sql.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Transactions, sql.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, sql.js",
      "display": "npm install sql.js",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, sql.js",
      "display": "Runs SQLite through WebAssembly with in-memory databases and database-file import and export.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, sql.js",
      "display": "Runs in browsers and Node",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, sql.js",
      "display": "Use the same database API across browser and Node hosts.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, sql.js",
      "display": "Exports a complete database file",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, sql.js",
      "display": "Export the database as a Uint8Array for separate storage.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, sql.js",
      "display": "Changes stay in memory",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, sql.js",
      "display": "Export and store database bytes when changes must survive a reload.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, sql.js",
      "display": "Prepared statements need explicit cleanup",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, sql.js",
      "display": "Free prepared statements after use to release their memory.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, sql.js",
      "display": "<meta charset=\"utf8\" />\n<html>\n  <script src='/dist/sql-wasm.js'></script>\n  <script>\n    config = {\n      locateFile: filename => `/dist/${filename}`\n    }\n    // The `initSqlJs` function is globally provided by all of the main dist files if loaded in the browser.\n    // We must specify this locateFile function if we are loading a wasm file from anywhere other than the current html page's folder.\n    initSqlJs(config).then(function(SQL){\n      //Create the database\n      const db = new SQL.Database();\n      // Run a query without reading the results\n      db.run(\"CREATE TABLE test (col1, col2);\");\n      // Insert two rows: (1,111) and (2,222)\n      db.run(\"INSERT INTO test VALUES (?,?), (?,?)\", [1,111,2,222]);\n\n      // Prepare a statement\n      const stmt = db.prepare(\"SELECT * FROM test WHERE col1 BETWEEN $start AND $end\");\n      stmt.getAsObject({$start:1, $end:1}); // {col1:1, col2:111}\n\n      // Bind new values\n      stmt.bind({$start:1, $end:2});\n      while(stmt.step()) { //\n        const row = stmt.getAsObject();\n        console.log('Here is a row: ' + JSON.stringify(row));\n      }\n    });\n  </script>\n  <body>\n    Output is in Javascript console\n  </body>\n</html>\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, sql.js",
      "display": "all(placeholderValues?: Record<string, unknown>): T['all'] {\n\t\tconst stmt = this.client.prepare(this.query.sql);\n\n\t\tconst { fields, joinsNotNullableMap, logger, query, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst params = fillPlaceholders(query.params, placeholderValues ?? {});\n\t\t\tlogger.logQuery(query.sql, params);\n\t\t\tstmt.bind(params as BindParams);\n\t\t\tconst rows: unknown[] = [];\n\t\t\twhile (stmt.step()) {\n\t\t\t\trows.push(stmt.getAsObject());\n\t\t\t}\n\n\t\t\tstmt.free();\n\n\t\t\treturn rows;\n\t\t}\n\n\t\tconst rows = this.values(placeholderValues) as unknown[][];\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows, normalizeFieldValue) as T['all'];\n\t\t}\n\n\t\treturn rows.map((row) => mapResultRow(fields!, row.map((v) => normalizeFieldValue(v)), joinsNotNullableMap));\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, sql.js",
      "display": "session.ts · all()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, sql.js",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Library name, @libsql/client",
      "display": "libSQL client",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, @libsql/client",
      "display": "21.6M",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "License, @libsql/client",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, @libsql/client",
      "display": "0.18.0",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Undated package release, @libsql/client",
      "display": "v0.18.0",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Repository stars, @libsql/client",
      "display": "579",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Runs in Node.js, @libsql/client",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Runs in browsers, @libsql/client",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Transactions, @libsql/client",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, @libsql/client",
      "display": "npm install @libsql/client",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, @libsql/client",
      "display": "Uses a JavaScript client for local SQLite databases and remote libSQL services.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, @libsql/client",
      "display": "Supports local and remote databases",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, @libsql/client",
      "display": "Choose a local database file or a remote libSQL connection.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @libsql/client",
      "display": "Groups statements into batches",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @libsql/client",
      "display": "Submit multiple statements together with an explicit transaction mode.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, @libsql/client",
      "display": "Web clients cannot open files",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, @libsql/client",
      "display": "Use the Node client for local file URLs.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @libsql/client",
      "display": "Replica writes go to primary",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @libsql/client",
      "display": "Embedded replicas forward writes to the primary instead of accepting offline writes.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, @libsql/client",
      "display": "import { createClient } from \"@libsql/client\";\n\nconst client = createClient({\n    url: \":memory:\",\n});\n\nawait client.batch(\n    [\n        \"CREATE TABLE users (email TEXT)\",\n        \"INSERT INTO users VALUES ('first@example.com')\",\n        \"INSERT INTO users VALUES ('second@example.com')\",\n        \"INSERT INTO users VALUES ('third@example.com')\",\n    ],\n    \"write\",\n);\n\nconst result = await client.execute(\"SELECT * FROM users\");\n\nconsole.log(\"Users:\", result.rows);\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, @libsql/client",
      "display": "override async transaction<T>(\n\t\ttransaction: (db: LibSQLTransaction<TFullSchema, TSchema>) => T | Promise<T>,\n\t\t_config?: SQLiteTransactionConfig,\n\t): Promise<T> {\n\t\t// TODO: support transaction behavior\n\t\tconst libsqlTx = await this.client.transaction();\n\t\tconst session = new LibSQLSession<TFullSchema, TSchema>(\n\t\t\tthis.client,\n\t\t\tthis.dialect,\n\t\t\tthis.schema,\n\t\t\tthis.options,\n\t\t\tlibsqlTx,\n\t\t);\n\t\tconst tx = new LibSQLTransaction<TFullSchema, TSchema>('async', this.dialect, session, this.schema);\n\t\ttry {\n\t\t\tconst result = await transaction(tx);\n\t\t\tawait libsqlTx.commit();\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\tawait libsqlTx.rollback();\n\t\t\tthrow err;\n\t\t}\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, @libsql/client",
      "display": "session.ts · transaction()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, @libsql/client",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, drizzle-team/drizzle-orm",
      "display": "36.3K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, drizzle-team/drizzle-orm",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Library name, @sqlite.org/sqlite-wasm",
      "display": "SQLite Wasm",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, @sqlite.org/sqlite-wasm",
      "display": "5.4M",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "License, @sqlite.org/sqlite-wasm",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, @sqlite.org/sqlite-wasm",
      "display": "3.54.1-build1",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Undated package release, @sqlite.org/sqlite-wasm",
      "display": "v3.54.1-build1",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Repository stars, @sqlite.org/sqlite-wasm",
      "display": "1.1K",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Runs in Node.js, @sqlite.org/sqlite-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Runs in browsers, @sqlite.org/sqlite-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Prepared statements, @sqlite.org/sqlite-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Transactions, @sqlite.org/sqlite-wasm",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, @sqlite.org/sqlite-wasm",
      "display": "npm install @sqlite.org/sqlite-wasm",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, @sqlite.org/sqlite-wasm",
      "display": "Packages SQLite WebAssembly APIs for browser, worker, and in-memory Node usage.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, @sqlite.org/sqlite-wasm",
      "display": "Exposes prepared SQLite statements",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, @sqlite.org/sqlite-wasm",
      "display": "Bind values, step through rows, and finalize native statement objects.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, @sqlite.org/sqlite-wasm",
      "display": "Uses browser-private file storage",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, @sqlite.org/sqlite-wasm",
      "display": "Open an OPFS database from a worker for persistent browser storage.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, @sqlite.org/sqlite-wasm",
      "display": "Node databases stay in memory",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, @sqlite.org/sqlite-wasm",
      "display": "Use another binding when Node needs persistent database files.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, @sqlite.org/sqlite-wasm",
      "display": "OPFS databases need worker execution",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, @sqlite.org/sqlite-wasm",
      "display": "Move the OPFS database workload off the browser’s main thread.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, @sqlite.org/sqlite-wasm",
      "display": "import sqlite3InitModule from '@sqlite.org/sqlite-wasm';\n\nconst runDemo = async () => {\n  const sqlite3 = await sqlite3InitModule();\n\n  // 1. Create a database\n  const db = new sqlite3.oo1.DB(':memory:');\n\n  // 2. Create a table\n  db.exec('CREATE TABLE test (id INTEGER PRIMARY KEY, name TEXT)');\n\n  // 3. Insert data\n  db.exec({\n    sql: 'INSERT INTO test (name) VALUES (?), (?)',\n    bind: ['Alice', 'Bob'],\n  });\n\n  // 4. Query data\n  const rows = db.selectObjects('SELECT * FROM test ORDER BY id');\n\n  const app = document.getElementById('app');\n  if (app) {\n    const ul = document.createElement('ul');\n    rows.forEach((row: any) => {\n      const li = document.createElement('li');\n      li.textContent = `${row.id}: ${row.name}`;\n      ul.appendChild(li);\n    });\n    app.appendChild(ul);\n  }\n\n  db.close();\n};\n\nrunDemo().catch(console.error);\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Synchronous SQLite access in Node",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose better-sqlite3",
      "display": "reusable native statement objects",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "synchronous SQLite access in Node",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider sql.js",
      "display": "browser execution is required",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Moving database bytes across hosts",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose sql.js",
      "display": "database import and export",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "moving database bytes across hosts",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider @sqlite.org/sqlite-wasm",
      "display": "browser-private file storage is the priority",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Local files and remote libSQL",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose @libsql/client",
      "display": "one client across connection types",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "local files and remote libSQL",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider better-sqlite3",
      "display": "synchronous local prepared statements are the priority",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Browser-private persistent storage",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose @sqlite.org/sqlite-wasm",
      "display": "worker-based OPFS database access",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "browser-private persistent storage",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "JavaScript SQLite libraries let application developers store and query application data.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Can SQL.js load an existing SQLite database?",
      "display": "Import database-file bytes or create a new in-memory database.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does sql.js persist database changes automatically?",
      "display": "Its database file stays in memory; export and store bytes separately for persistence.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: How are SQL.js prepared statements released?",
      "display": "Call free after the statement is no longer needed.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can SQL.js execute transactions?",
      "display": "Use SQL transaction statements with db.exec to commit or roll back changes.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can synchronous transaction callbacks use await?",
      "display": "Async functions return before later awaited work; keep async work outside the transaction.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: What happens to integers beyond JavaScript number precision?",
      "display": "better-sqlite3 supports BigInt values for SQLite integer data.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Can the libSQL web client open a database file?",
      "display": "The web client does not support local file URLs.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can a libSQL client group several statements?",
      "display": "Use batch with an explicit transaction mode.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Do embedded libSQL replicas accept offline writes?",
      "display": "Embedded-replica writes go to the cloud primary.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can the official WASM package persist Node databases?",
      "display": "Its published package currently limits Node support to in-memory databases.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Where does the official OPFS database run?",
      "display": "The OPFS storage backend is available through the worker setup.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Do all SQLite files count as JSON exports?",
      "display": "SQL.js export returns database bytes as a Uint8Array rather than a JSON artifact.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, better-sqlite3",
      "display": "better-sqlite3",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, better-sqlite3",
      "display": "63.3M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, better-sqlite3",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, better-sqlite3",
      "display": "13.2.0",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, better-sqlite3",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, better-sqlite3",
      "display": "npm install better-sqlite3@13.2.0",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, better-sqlite3",
      "display": "const Database = require(\"better-sqlite3\");\nconst db = new Database(\":memory:\");\nconsole.log(db.prepare(\"SELECT 1 AS value\").get());\ndb.close();\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Repository stars, better-sqlite3",
      "display": "7.6K",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Browser execution, better-sqlite3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Automatic file persistence, better-sqlite3",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Host and storage model, better-sqlite3",
      "display": "Synchronous Node native binding with reusable prepared statements and direct local database files. Native ABI/prebuild support matters; browser runtime is separate.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "First-call prerequisites, better-sqlite3",
      "display": "Supported Node.js CommonJS host with the selected native addon available for its Node/platform ABI. Uses a new in-memory database, a prepared select, and explicit close; no migration file or fs helper is assumed. Synchronous database calls run on the JavaScript thread.",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project function, better-sqlite3",
      "display": "get(placeholderValues?: Record<string, unknown>): T['get'] {\n\t\tconst params = fillPlaceholders(this.query.params, placeholderValues ?? {});\n\t\tthis.logger.logQuery(this.query.sql, params);\n\n\t\tconst { fields, stmt, joinsNotNullableMap, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\treturn stmt.get(...params);\n\t\t}\n\n\t\tconst row = stmt.raw().get(...params) as unknown[];\n\n\t\tif (!row) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper([row]) as T['get'];\n\t\t}\n\n\t\treturn mapResultRow(fields!, row, joinsNotNullableMap);\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project source file, better-sqlite3",
      "display": "drizzle-orm/src/better-sqlite3/session.ts",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project full_name, better-sqlite3",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project stargazers_count, better-sqlite3",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Library name, sql.js",
      "display": "sql.js",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Monthly downloads, sql.js",
      "display": "23.9M",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "License, sql.js",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release, sql.js",
      "display": "1.17.0",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Package release date, sql.js",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Install, sql.js",
      "display": "npm install sql.js@1.17.0",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart, sql.js",
      "display": "const initSqlJs = require(\"sql.js\");\ninitSqlJs().then(SQL => {\n  const db = new SQL.Database();\n  console.log(db.exec(\"SELECT 1 AS value\"));\n  db.close();\n}).catch(console.error);\n",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Repository stars, sql.js",
      "display": "13.7K",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Browser execution, sql.js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Automatic file persistence, sql.js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Host and storage model, sql.js",
      "display": "WASM SQLite in browser or Node using an in-memory virtual file. Import/export yields database bytes; writes do not automatically persist them to a real file or browser storage.",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "First-call prerequisites, sql.js",
      "display": "Node.js CommonJS first call, using sql.js packaged WASM asset and its documented Node loading behavior. Browser use is also supported but needs served WASM/locateFile configuration; this Node snippet does not hide a browser asset server. The database is in memory and changes do not automatically persist.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project function, sql.js",
      "display": "all(placeholderValues?: Record<string, unknown>): T['all'] {\n\t\tconst stmt = this.client.prepare(this.query.sql);\n\n\t\tconst { fields, joinsNotNullableMap, logger, query, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst params = fillPlaceholders(query.params, placeholderValues ?? {});\n\t\t\tlogger.logQuery(query.sql, params);\n\t\t\tstmt.bind(params as BindParams);\n\t\t\tconst rows: unknown[] = [];\n\t\t\twhile (stmt.step()) {\n\t\t\t\trows.push(stmt.getAsObject());\n\t\t\t}\n\n\t\t\tstmt.free();\n\n\t\t\treturn rows;\n\t\t}\n\n\t\tconst rows = this.values(placeholderValues) as unknown[][];\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows, normalizeFieldValue) as T['all'];\n\t\t}\n\n\t\treturn rows.map((row) => mapResultRow(fields!, row.map((v) => normalizeFieldValue(v)), joinsNotNullableMap));\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project source file, sql.js",
      "display": "drizzle-orm/src/sql-js/session.ts",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project full_name, sql.js",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project stargazers_count, sql.js",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Library name, @libsql/client",
      "display": "libSQL client",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Monthly downloads, @libsql/client",
      "display": "22.1M",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "License, @libsql/client",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Package release, @libsql/client",
      "display": "0.18.0",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Package release date, @libsql/client",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Install, @libsql/client",
      "display": "npm install @libsql/client@0.18.0",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Quickstart, @libsql/client",
      "display": "import { createClient } from \"@libsql/client\";\nconst client = createClient({ url: \":memory:\" });\nconsole.log((await client.execute(\"SELECT 1 AS value\")).rows);\nclient.close();\n",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Repository stars, @libsql/client",
      "display": "579",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Browser execution, @libsql/client",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Automatic file persistence, @libsql/client",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Host and storage model, @libsql/client",
      "display": "One client family for local Node libSQL files/memory and remote libSQL services, with a distinct browser /web entry. Local file support must not be transferred to browser /web or confused with the newer Turso rewrite packages.",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "First-call prerequisites, @libsql/client",
      "display": "Supported Node.js ESM host with the native local libSQL dependency available. Uses local in-memory SQL, no Turso account/token. Browser /web entry supports remote connections rather than local file/memory databases; do not transfer this Node local recipe to that browser entry.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project function, @libsql/client",
      "display": "override async transaction<T>(\n\t\ttransaction: (db: LibSQLTransaction<TFullSchema, TSchema>) => T | Promise<T>,\n\t\t_config?: SQLiteTransactionConfig,\n\t): Promise<T> {\n\t\t// TODO: support transaction behavior\n\t\tconst libsqlTx = await this.client.transaction();\n\t\tconst session = new LibSQLSession<TFullSchema, TSchema>(\n\t\t\tthis.client,\n\t\t\tthis.dialect,\n\t\t\tthis.schema,\n\t\t\tthis.options,\n\t\t\tlibsqlTx,\n\t\t);\n\t\tconst tx = new LibSQLTransaction<TFullSchema, TSchema>('async', this.dialect, session, this.schema);\n\t\ttry {\n\t\t\tconst result = await transaction(tx);\n\t\t\tawait libsqlTx.commit();\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\tawait libsqlTx.rollback();\n\t\t\tthrow err;\n\t\t}\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project source file, @libsql/client",
      "display": "drizzle-orm/src/libsql/session.ts",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project full_name, @libsql/client",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project stargazers_count, @libsql/client",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Library name, sqlite3",
      "display": "sqlite3",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Monthly downloads, sqlite3",
      "display": "11.7M",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "License, sqlite3",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Package release, sqlite3",
      "display": "6.0.1",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Package release date, sqlite3",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Install, sqlite3",
      "display": "npm install sqlite3@6.0.1",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart, sqlite3",
      "display": "const sqlite3 = require(\"sqlite3\");\nconst db = new sqlite3.Database(\":memory:\", err => {\n  if (err) throw err;\n  db.get(\"SELECT 1 AS value\", [], (err, row) => {\n    if (err) throw err;\n    console.log(row);\n    db.close();\n  });\n});\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Official description, sqlite3",
      "display": "Provides SQLite bindings for Node.js.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart source file, sqlite3",
      "display": "wiki/API.md",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, sqlite3",
      "display": "6.4K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Browser execution, sqlite3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Automatic file persistence, sqlite3",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Host and storage model, sqlite3",
      "display": "Node native callback-oriented binding with parameterized run/get/all operations. sqlite is a separate Promise wrapper and its counter overlaps this engine dependency.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "First-call prerequisites, sqlite3",
      "display": "Supported Node.js CommonJS host with the native sqlite3 addon for its platform/Node ABI. The constructor callback gates the one get call, which returns its row through a callback rather than a Promise. Closing occurs after that callback; no table or remote service is needed.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, sqlite3",
      "display": "_query(connection, obj) {\n    if (!obj.sql) throw new Error('The query is empty');\n\n    const { method } = obj;\n    let callMethod;\n    switch (method) {\n      case 'insert':\n      case 'update':\n        callMethod = obj.returning ? 'all' : 'run';\n        break;\n      case 'counter':\n      case 'del':\n        callMethod = 'run';\n        break;\n      default:\n        callMethod = 'all';\n    }\n    return new Promise(function (resolver, rejecter) {\n      if (!connection || !connection[callMethod]) {\n        return rejecter(\n          new Error(`Error calling ${callMethod} on connection.`)\n        );\n      }\n      connection[callMethod](obj.sql, obj.bindings, function (err, response) {\n        if (err) return rejecter(err);\n        obj.response = response;\n\n        // We need the context here, as it contains\n        // the \"this.lastID\" or \"this.changes\"\n        obj.context = this;\n\n        return resolver(obj);\n      });\n    });\n  }\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, sqlite3",
      "display": "lib/dialects/sqlite3/index.js",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, sqlite3",
      "display": "knex/knex",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, sqlite3",
      "display": "20.3K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, expo-sqlite",
      "display": "Expo SQLite",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, expo-sqlite",
      "display": "10.6M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, expo-sqlite",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, expo-sqlite",
      "display": "58.0.18",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, expo-sqlite",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, expo-sqlite",
      "display": "npx expo install expo-sqlite@58.0.18",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, expo-sqlite",
      "display": "import * as SQLite from \"expo-sqlite\";\nasync function firstQuery() {\n  const db = await SQLite.openDatabaseAsync(\"demo.db\");\n  console.log(await db.getFirstAsync(\"SELECT 1 AS value\"));\n  await db.closeAsync();\n}\nfirstQuery().catch(console.error);\n",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, expo-sqlite",
      "display": "Belongs to Expo, a React framework for native apps on Android, iOS, and the web.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, expo-sqlite",
      "display": "docs/pages/versions/unversioned/sdk/sqlite.mdx",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Repository stars, expo-sqlite",
      "display": "53.7K",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Browser execution, expo-sqlite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Automatic file persistence, expo-sqlite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Host and storage model, expo-sqlite",
      "display": "Expo/React Native SQLite module with asynchronous and synchronous prepared/query APIs; native data persists in the application database. Web support is experimental with additional WASM/bundler/header requirements.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "First-call prerequisites, expo-sqlite",
      "display": "Existing compatible Expo/React Native application with expo-sqlite installed using npx expo install expo-sqlite for SDK version alignment; selected58.0.18 belongs to the audited package generation. Invoke inside its configured app runtime, not ordinary Node. Web support is explicitly experimental and needs the publisher WASM/bundler/security-header setup; native demo.db persists in the application database location.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project function, expo-sqlite",
      "display": "all(placeholderValues?: Record<string, unknown>): T['all'] {\n\t\tconst { fields, joinsNotNullableMap, query, logger, stmt, customResultMapper } = this;\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst params = fillPlaceholders(query.params, placeholderValues ?? {});\n\t\t\tlogger.logQuery(query.sql, params);\n\t\t\treturn stmt.executeSync(params as any[]).getAllSync();\n\t\t}\n\n\t\tconst rows = this.values(placeholderValues) as unknown[][];\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows) as T['all'];\n\t\t}\n\t\treturn rows.map((row) => mapResultRow(fields!, row, joinsNotNullableMap));\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project source file, expo-sqlite",
      "display": "drizzle-orm/src/expo-sqlite/session.ts",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project full_name, expo-sqlite",
      "display": "drizzle-team/drizzle-orm",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project stargazers_count, expo-sqlite",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Library name, @sqlite.org/sqlite-wasm",
      "display": "SQLite Wasm",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Monthly downloads, @sqlite.org/sqlite-wasm",
      "display": "5.6M",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "License, @sqlite.org/sqlite-wasm",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release, @sqlite.org/sqlite-wasm",
      "display": "3.54.1-build1",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release date, @sqlite.org/sqlite-wasm",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Install, @sqlite.org/sqlite-wasm",
      "display": "npm install @sqlite.org/sqlite-wasm@3.54.1-build1",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart, @sqlite.org/sqlite-wasm",
      "display": "import sqlite3InitModule from \"@sqlite.org/sqlite-wasm\";\nconst sqlite3 = await sqlite3InitModule();\nconst db = new sqlite3.oo1.DB(\":memory:\");\nconsole.log(db.selectValue(\"SELECT 1\"));\ndb.close();\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Repository stars, @sqlite.org/sqlite-wasm",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Browser execution, @sqlite.org/sqlite-wasm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Automatic file persistence, @sqlite.org/sqlite-wasm",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Host and storage model, @sqlite.org/sqlite-wasm",
      "display": "Official SQLite Wasm OO1 interface: Node memory only; browser main thread supports transient databases and worker OPFS enables persistence with VFS-specific prerequisites. Wrapper package Apache2 license is distinct from SQLite C source public-domain status.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "First-call prerequisites, @sqlite.org/sqlite-wasm",
      "display": "Supported Node.js ESM host using the installed package WASM asset, only an in-memory database: publisher explicitly limits Node to memory without persistence. Browser use needs its documented module/WASM serving setup. Persistent browser OPFS needs a worker and the applicable VFS/security-header requirements; none are silently assumed by this memory first call.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, @sqlite.org/sqlite-wasm",
      "display": "all(...params: unknown[]): unknown[] {\n        if (this.isFinalized) {\n            throw new Error(\"Cannot call all() on finalized statement\");\n        }\n\n        this.bindParams(params);\n        const results: unknown[] = [];\n        try {\n            while (this.stmt.step()) {\n                if (this.isPluckMode) {\n                    // In pluck mode, return only the first column value for each row\n                    const row = this.stmt.get([]);\n                    if (Array.isArray(row) && row.length > 0) {\n                        results.push(row[0]);\n                    }\n                } else {\n                    results.push(this.isRawMode ? this.stmt.get([]) : this.stmt.get({}));\n                }\n            }\n            return results;\n        } finally {\n            this.stmt.reset();\n        }\n    }\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, @sqlite.org/sqlite-wasm",
      "display": "apps/standalone/src/lightweight/sql_provider.ts",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, @sqlite.org/sqlite-wasm",
      "display": "TriliumNext/Trilium",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, @sqlite.org/sqlite-wasm",
      "display": "39.0K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, @op-engineering/op-sqlite",
      "display": "OP-SQLite",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, @op-engineering/op-sqlite",
      "display": "2.9M",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, @op-engineering/op-sqlite",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, @op-engineering/op-sqlite",
      "display": "19.0.5",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, @op-engineering/op-sqlite",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, @op-engineering/op-sqlite",
      "display": "npm install @op-engineering/op-sqlite@19.0.5",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, @op-engineering/op-sqlite",
      "display": "import { open } from \"@op-engineering/op-sqlite\";\nasync function firstQuery() {\n  const db = open({ name: \"demo.sqlite\" });\n  console.log((await db.execute(\"SELECT 1 AS value\")).rows);\n  db.close();\n}\nfirstQuery().catch(console.error);\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Official description, @op-engineering/op-sqlite",
      "display": "Provides a SQLite library for React Native.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart source file, @op-engineering/op-sqlite",
      "display": "API Reference; Installation",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Repository stars, @op-engineering/op-sqlite",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Browser execution, @op-engineering/op-sqlite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Automatic file persistence, @op-engineering/op-sqlite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Host and storage model, @op-engineering/op-sqlite",
      "display": "React Native native binding with async execute and prepared APIs, optional backend/encryption choices, and a separate web openAsync/OPFS path. Stock Expo Go is unsupported; native build setup is required.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "First-call prerequisites, @op-engineering/op-sqlite",
      "display": "Configured compatible React Native application with OP-SQLite native module/pods built. Stock Expo Go is unsupported; an Expo app requires a development/prebuilt native build. This native open is synchronous, execute is asynchronous and returns rows directly. Web uses openAsync with OPFS instead; neither ordinary Node nor browser readiness is implied by this native snippet. A real application should reuse a connection rather than repeatedly open/close for every query.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, @op-engineering/op-sqlite",
      "display": "public async query<T>(sql: string, params?: unknown[]): Promise<T[]> {\n    if (!this.db) {\n      throw new Error(\"Database not initialized\");\n    }\n\n    const result = await this.db.execute(sql, params as any[]);\n\n    return result.rows as T[];\n  }\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, @op-engineering/op-sqlite",
      "display": "packages/jazz-tools/src/react-native/storage/op-sqlite-adapter.ts",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, @op-engineering/op-sqlite",
      "display": "garden-co/classic-jazz",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, @op-engineering/op-sqlite",
      "display": "2.5K",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, sqlite",
      "display": "sqlite",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, sqlite",
      "display": "1.0M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, sqlite",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, sqlite",
      "display": "5.1.1",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, sqlite",
      "display": "Nov 2023",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, sqlite",
      "display": "npm install sqlite@5.1.1 sqlite3@6.0.1",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, sqlite",
      "display": "import sqlite3 from \"sqlite3\";\nimport { open } from \"sqlite\";\nconst db = await open({ filename: \":memory:\", driver: sqlite3.Database });\nconsole.log(await db.get(\"SELECT 1 AS value\"));\nawait db.close();\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, sqlite",
      "display": "Wraps sqlite3 with a promise-based client and SQL migrations for Node.js.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, sqlite",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, sqlite",
      "display": "935",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Browser execution, sqlite",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Automatic file persistence, sqlite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Host and storage model, sqlite",
      "display": "Promise-oriented wrapper around an actual SQLite driver, commonly sqlite3. It supplies async open/get/all/exec/migrate rather than a separate SQLite engine or independent underlying adoption count.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "First-call prerequisites, sqlite",
      "display": "Supported Node.js ESM host with sqlite3 native peer. sqlite supplies the Promise wrapper/open/get contract while sqlite3 supplies the actual SQLite binding; their download counts are not independent users. In-memory select1 needs no migration or preexisting data.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project function, sqlite",
      "display": "export async function runSqliteMigrations(db: Database) {\n  await new Promise((resolve) => {\n    void migrate(\n      \"sqlite_modify_docs_columns_and_copy_to_config\",\n      async () => {\n        try {\n          const pragma = await db.all(\n            `PRAGMA table_info(${DocsService.sqlitebTableName});`,\n          );\n\n          const hasFaviconCol = pragma.some(\n            (pragma) => pragma.name === \"favicon\",\n          );\n          if (!hasFaviconCol) {\n            await db.exec(\n              `ALTER TABLE ${DocsService.sqlitebTableName} ADD COLUMN favicon BLOB;`,\n            );\n          }\n\n          const hasBaseUrlCol = pragma.some(\n            (pragma) => pragma.name === \"baseUrl\",\n          );\n          if (hasBaseUrlCol) {\n            await db.exec(\n              `ALTER TABLE ${DocsService.sqlitebTableName} RENAME COLUMN baseUrl TO startUrl;`,\n            );\n          }\n\n          const needsToUpdateConfig = !hasFaviconCol || hasBaseUrlCol;\n          if (needsToUpdateConfig) {\n            const sqliteDocs = await db.all<\n              Array<Pick<SqliteDocsRow, \"title\" | \"startUrl\">>\n            >(`SELECT title, startUrl FROM ${DocsService.sqlitebTableName}`);\n            editConfigFile(\n              (config) => ({\n                ...config,\n                docs: [...(config.docs || []), ...sqliteDocs],\n              }),\n              (config) => ({\n                ...config,\n                docs: [\n                  ...(config.docs || []),\n                  ...sqliteDocs.map((doc) => ({\n                    name: doc.title,\n                    startUrl: doc.startUrl,\n                  })),\n                ],\n              }),\n            );\n          }\n        } finally {\n          resolve(undefined);\n        }\n      },\n      () => resolve(undefined),\n    );\n  });\n\n  await new Promise((resolve) => {\n    void migrate(\n      \"sqlite_delete_docs_with_no_embeddingsProviderId\",\n      async () => {\n        try {\n          const pragma = await db.all(\n            `PRAGMA table_info(${DocsService.sqlitebTableName});`,\n          );\n          const hasEmbeddingsProviderColumn = pragma.some(\n            (pragma) => pragma.name === \"embeddingsProviderId\",\n          );\n          if (!hasEmbeddingsProviderColumn) {\n            // gotta just delete in this case since old docs will be unusable anyway\n            await db.exec(`DROP TABLE ${DocsService.sqlitebTableName};`);\n          }\n        } finally {\n          resolve(undefined);\n        }\n      },\n      () => resolve(undefined),\n    );\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project source file, sqlite",
      "display": "core/indexing/docs/migrations.ts",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project full_name, sqlite",
      "display": "continuedev/continue",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project stargazers_count, sqlite",
      "display": "36.5K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript SQLite libraries better-sqlite3 sql.js libsql official sqlite-wasm code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
