Skip to content

Commit 72000e0

Browse files
authored
Merge pull request #1172 from size12/variant-struct
variant struct
2 parents a0abd92 + 8c78b93 commit 72000e0

File tree

5 files changed

+1057
-3
lines changed

5 files changed

+1057
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added `Struct` support for `Variant` in `ydb.ParamsBuilder()`
2+
13
## v3.61.2
24
* Changed default transaction control to `NoTx` for execute query through query service client
35

internal/params/variant.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ func (vb *variantBuilder) EndVariant() Builder {
2424
return vb.variant.parent
2525
}
2626

27-
func (v *variant) Tuple() *variantTuple {
27+
func (v *variant) BeginTuple() *variantTuple {
2828
return &variantTuple{
2929
parent: v,
3030
}
3131
}
32+
33+
func (v *variant) BeginStruct() *variantStruct {
34+
return &variantStruct{
35+
parent: v,
36+
}
37+
}

0 commit comments

Comments
 (0)