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

V2 Plan #55

Open
5 of 8 tasks
kazegusuri opened this issue Dec 21, 2020 · 3 comments
Open
5 of 8 tasks

V2 Plan #55

kazegusuri opened this issue Dec 21, 2020 · 3 comments

Comments

@kazegusuri
Copy link
Collaborator

kazegusuri commented Dec 21, 2020

Yo is originally forked from xo. The current functionality mostly comes from xo. We have specialized yo for Spanner use cases. However there are unsupported features that Spanner recently introduced.
There are still undocumented functionality in functions for template. We should cleanup unused functions and re-organize exposed functions with consistent interfaces. Additionally we want to improve extensibility of the code generation. We sometimes want to tweak the generated code. Though it requires to replace full templates from the default templates and it makes difficult to follow upstream changes in templates.

So we decided to cut a new major version of Yo and will introduce breaking changes in the release. This is the list of the expected features and changes.

  • Module base template (not detailed yet)
  • Custom query
  • Interleave support
  • Re-organize custom types features
  • Re-organize custom inflection rules
  • Cleanup template functions
  • Implicitly specify ORDER BY clause for query
  • Rename functions generated from secondary index

If anyone has a request, please create an issue and link to this.

@cloverrose
Copy link

cloverrose commented Jul 14, 2021

Hi, what does Custom query mean? (Is it Spanner feature?)
For Find method, I want to LIMIT feature. Is it included?

@kazegusuri
Copy link
Collaborator Author

I'm thinking the similar feature of xo's custom query. It's not spanner feature.
But the custom query feature will be omitted in the first v2 release. It will be considered after the release.

I also want to support LIMIT/OFFSET in the current Read/Find methods in v2.

@tgolsson
Copy link

Is interleave support planned but not worked on, or how should I interpret the simple bullet point in the list? I'm using the v2 version but the code generated doesn't account for the interleaves at all, as far as I can tell.

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

3 participants