nodejs / nodejs/node

Enable the 2 new SQLite 3.51.0 amalgamation extensions.

Đang mở
#60,618 5 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

feature request sqlite
Ngôn ngữ chính
JavaScript
Star
122k
Fork
37.3k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
283

Mô tả

Depends on #60614.

What is the problem this feature will solve?

SQLite 3.51.0 added 2 new extensions to the amalgamation:

  • Carray: Enabled by compile-time flag -DSQLITE_ENABLE_CARRAY. Useful for binding C-language arrays to SQL queries. I am unsure wether JS/TS can make use of this directly, but perhaps it may at least be useful for internal use in the Node.js-SQLite bindings. I am, however, not familiar enough with the code to comment on it.

  • Percentile: Enabled by compile-time flag -DSQLITE_ENABLE_PERCENTILE. Useful for extracting various statistical percentages from tables and should be faster than JS by having a native implementation. It also includes another compile time flag, -DSQLITE_ENABLE_ORDERED_SET_AGGREGATES=1, which can be set to 1 to support cross-platform SQL syntax, adding the new WITHIN keyword. Also increases binary size by about 1200 bytes. See the docs for all details: https://sqlite.org/compile.html#enable_ordered_set_aggregates.

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

Enable the Percentile extension with its compile flags.

Carray usefulness should be investigated and can also be enabled via its compile-time flag.

What alternatives have you considered?

Missing out on these new extensions.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng việc xem xét dependency #60614 và quá trình tích hợp SQLite amalgamation của Node.js. Kiểm tra cách cung cấp các cờ biên dịch, sau đó đánh giá việc bật SQLITE_ENABLE_PERCENTILE, SQLITE_ENABLE_ORDERED_SET_AGGREGATES và SQLITE_ENABLE_CARRAY; công việc được xem là hoàn tất khi các extension dự kiến đã được bật và support của chúng đã được xác minh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
c, node.js, sqlite
Lĩnh vực
backend, databases
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
43/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.