You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Ydb.Sdk/src/Value/YdbList.cs
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -5,33 +5,34 @@
5
5
namespaceYdb.Sdk.Value;
6
6
7
7
/// <summary>
8
-
/// Struct-only builder for YDB <c>List<Struct<...>></c>.
9
-
/// Works directly with protobuf:
10
-
/// - Each call to <see cref="AddRow(object?[])"/> converts values into protobuf cells (<see cref="Ydb.Value"/>) and stores a row immediately.
11
-
/// - The struct schema (<see cref="StructType"/>) is derived from column type hints or from the first non-null sample per column.
12
-
/// - If a column has at least one <c>null</c>, its type becomes <c>Optional<T></c>; individual null cells are encoded via <see cref="NullValue.NullValue"/>.
8
+
/// Builder for YDB values shaped as <c>List<Struct<...>></c>, working directly with protobuf.
9
+
/// Each call to <see cref="AddRow(object?[])"/> converts input values into protobuf cells and stores the row.
10
+
/// The struct schema is derived from explicit type hints or from the first non-null sample per column.
11
+
/// If a column contains at least one <c>null</c>, its member type becomes <c>Optional<T></c>.
13
12
/// </summary>
14
13
publicsealedclassYdbList
15
14
{
16
15
privatereadonlystring[]_columns;
17
-
privatereadonlyYdbDbType[]?_typeHints;
16
+
privatereadonlyYdbDbType[]_typeHints;
18
17
19
18
privatereadonlyList<Ydb.Value>_rows=new();
20
19
21
20
privatereadonlyType?[]_observedBaseTypes;
22
21
privatereadonlybool[]_sawNull;
23
22
24
23
/// <summary>
25
-
/// Create a struct-mode list with column names; types will be inferred from the
26
-
/// first non-null value per column (columns with any nulls become Optional<T>).
24
+
/// Create a struct-mode list with column names. Types will be inferred from the
25
+
/// first non-null value per column (columns with any nulls become <c>Optional<T></c>).
27
26
/// </summary>
27
+
/// <param name="columns">Struct member names, in order.</param>
0 commit comments