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

query params builder types #1062

Open
34 of 39 tasks
asmyasnikov opened this issue Feb 28, 2024 · 0 comments
Open
34 of 39 tasks

query params builder types #1062

asmyasnikov opened this issue Feb 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request student-projects

Comments

@asmyasnikov
Copy link
Member

asmyasnikov commented Feb 28, 2024

Next code must be worked:

params := ydb.ParamsBuilder().Param("$param").NewTypeFromPR()./*additional sub-calls*/
     Build()

Variable params can be used in

err := db.Table().Do(ctx, func(ctx, s) error) {
    res, tx, err := s.Execute(ctx, txControl, `
        SELECT $param;
    `, params)
    . . .
})
@asmyasnikov asmyasnikov added the enhancement New feature or request label Feb 28, 2024
@asmyasnikov asmyasnikov pinned this issue Feb 28, 2024
@asmyasnikov asmyasnikov changed the title feat: builder types feat: implement builder types Feb 28, 2024
@asmyasnikov asmyasnikov self-assigned this Feb 28, 2024
@asmyasnikov asmyasnikov changed the title feat: implement builder types feat: implement params builder types Feb 28, 2024
@asmyasnikov asmyasnikov changed the title feat: implement params builder types query params builder types Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request student-projects
Projects
None yet
Development

No branches or pull requests

1 participant