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

Tuple #1061

Closed
Tracked by #1062
asmyasnikov opened this issue Feb 28, 2024 · 1 comment
Closed
Tracked by #1062

Tuple #1061

asmyasnikov opened this issue Feb 28, 2024 · 1 comment
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").Tuple().
     Text("text").
     Uint32(123).
     Interval(time.Second).
     Build().
     Build()

Variable params can be used in

err := db.Table().Do(ctx, func(ctx, s) error) {
    res, tx, err := s.Execute(ctx, txControl, `
        -- DECLARE $param AS Tuple<Text,Uin32,Interval>;
        SELECT $param;
    `, params)
    . . .
})

See ydb.Builder().Param("$name").List() as example

@asmyasnikov asmyasnikov added the enhancement New feature or request label Feb 28, 2024
@asmyasnikov asmyasnikov changed the title feat: implement ydb.Builder().Param("$name").Tuple() Tuple Feb 28, 2024
@NovruzovE
Copy link
Contributor

I would like to take this one.

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

2 participants