Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
Artoria2e5 opened this issue Nov 12, 2023 · 0 comments
Open
1 of 2 tasks

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

Artoria2e5 opened this issue Nov 12, 2023 · 0 comments

Comments

@Artoria2e5
Copy link

Artoria2e5 commented Nov 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant