-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Support adding @YdbType annotation to method parameters #173
Comments
@zdazzy Existing Have you extended the |
@mipo256 The annotation is currently only applicable to fields. Placing it on method parameter will result in a compilation error. |
Yes, I got the general idea of what you're trying to do. CC: @KirillKurdyukov please, add the |
The first top-level review of the problem unravels the following approach. We can specify the custom That would solve the problem. However, there are a couple of caveats.
So, we need to think about it more deeply. CC: @KirillKurdyukov |
To cover the following (and all similar) case:
The inferred
limit
parameter type here is Int64, while YDB requires it to be exaclty UInt64.There are other cases where implicit type conversion fails. So a way to control this behavior would be great. An existing @YdbType annotation seems like a good solution.
The text was updated successfully, but these errors were encountered: