loopbackio / loopbackio/loopback-connector-sqlite3

REQ: JSON query using the extract (->) operator

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

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

Ngôn ngữ chính
JavaScript
Star
13
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Bug or feature request
  • Bug
  • Feature request
Description of feature (or steps to reproduce if bug)

SQLite3 3.38 of Feb 2022 has support for json extract -> not unlike Postgres and MySQL. This connector should be updated to use that if possible.

No data type change is needed -- it's still TEXT.

Expected result

I hope the final interface is the same as the Postgres connector. The PG example is:

Customer.find({
  where: {
    'address.state': 'California'
  },
  order: 'address.city'
})
Additional information (Node.js version, LoopBack version, etc)

Eh, doesn't really matter here. No code for this stuff present is no code for this stuff present.

It's also not like people use loopback with sqlite3 for super serious business things, so don't put the priority too high. It's just nice to make it capable of this JSON stuff so people can experiment on a minimal setup.

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 với tài liệu SQLite JSON1 và commit loopback-connector-postgresql được liên kết. Theo dõi cách connector này xử lý các đường dẫn JSON lồng nhau cho ví dụ whereorder được yêu cầu của Customer, sau đó xác minh rằng việc trích xuất JSON hoạt động trong khi các giá trị vẫn là TEXT.

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

Đánh giá

Công nghệ
javascript, sqlite
Lĩnh vực
database
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
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.