ydb-go-sdk icon indicating copy to clipboard operation
ydb-go-sdk copied to clipboard

Support container types (Tuple, Dict, List, Set) produced from List

Open asmyasnikov opened this issue 8 months ago • 0 comments

List of lists:

listOfLists := ydb.ParamsBuilder().Param("$list").BeginList().
   Add().BeginList().
      Add().Uint64(1).
      Add().Uint64(2).
      Add().Uint64(3).
      Add().Uint64(4).
      EndList().
   EndList().
   Add().BeginList().
      Add().Uint64(5).
      Add().Uint64(6).
      Add().Uint64(7).
      Add().Uint64(8).
      EndList().
   EndList().
   Build()

List of dicts:

listOfDicts := ydb.ParamsBuilder().Param("$list").BeginList().
   Add().BeginDict().
      Add().Text("a").Uint64(1).
      Add().Text("b").Uint64(2).
      EndDict().
   Add().BeginDict().
      Add().Text("c").Uint64(3).
      Add().Text("d").Uint64(4).
      EndDict().
   EndList().
   Build()

asmyasnikov avatar Jun 11 '24 10:06 asmyasnikov