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

Implement pure SQL interpreter #8

Closed
10 tasks done
stalniy opened this issue Aug 14, 2020 · 0 comments
Closed
10 tasks done

Implement pure SQL interpreter #8

stalniy opened this issue Aug 14, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@stalniy
Copy link
Owner

stalniy commented Aug 14, 2020

  • this interpreter should be part of a new package @ucast/sql (put it in packages/sql)
  • it should support the same operators as js interpreter from @ucast/js
  • it should allow to pass custom operators
  • it should use createInterpreter function from @ucast/core to create interpret function
  • the return value of interpret function is an array of 3 elements: [sql, params, joins]
  • when it finds condition.field with dots inside it's a hint that this property may be a relation to another table. Using custom option joinRelation we can allow users to specify logic which determines whether it's a relation.
  • submodule for objection
  • submodule for sequelize
  • submodule for mikro-orm
  • submodule for TypeORM
@stalniy stalniy added the enhancement New feature or request label Aug 14, 2020
@stalniy stalniy self-assigned this Aug 14, 2020
@stalniy stalniy changed the title Implement SQL interpreter Implement pure SQL interpreter Aug 14, 2020
stalniy added a commit that referenced this issue Aug 17, 2020
This also contains implementation for Objection.js interpreter

Relates to #8
stalniy added a commit that referenced this issue Aug 17, 2020
stalniy added a commit that referenced this issue Aug 17, 2020
stalniy added a commit that referenced this issue Aug 18, 2020
stalniy added a commit that referenced this issue Aug 18, 2020
stalniy added a commit that referenced this issue Aug 18, 2020
@stalniy stalniy closed this as completed Aug 18, 2020
stalniy added a commit that referenced this issue Aug 18, 2020
stalniy added a commit that referenced this issue Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant