nodejs / nodejs/node

sqlite: support custom collations via sqlite3_create_collation_v2

未关闭
#63,316 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

feature request sqlite
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

What is the problem this feature will solve?

This affects the ORDER BY clause. Without this feature the word Ágætis gets put after the word Zebra. I'm building a music DB and this issue comes up a lot.

What is the feature you are proposing to solve the problem?

Expose sqlite's sqlite3_create_collation_v2 API in NodeJs.

What alternatives have you considered?

This sorting can be done in code, but it is much slower than having the feature available

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 SQLite 的 sqlite3_create_collation_v2 API 和 Node.js 现有的 SQLite API 入口点开始,然后跟踪数据库功能是如何暴露的。完成的标准是:可以在 Node.js 中注册自定义排序规则,并使用它们为 Ágætis 和 Zebra 等名称生成预期的 ORDER BY 结果。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js, sqlite
领域
backend-api-design, databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。