github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/table/result/indexed/indexed.go (about)

     1  package indexed
     2  
     3  // Required is a type scan destination of non-optional ydb values
     4  // Required must be a single pointer value destination
     5  //
     6  // This is a proxy type for preparing go1.18 type set constrains such as
     7  //
     8  //	type Required interface {
     9  //	  *int8 | *int64 | *string | types.Scanner | json.Unmarshaler
    10  //	}
    11  type Required interface{}
    12  
    13  // Optional is a type scan destination of optional ydb values
    14  // Optional must be a double pointer value destination
    15  //
    16  // This is a proxy type for preparing go1.18 type set constrains such as
    17  //
    18  //	type Optional interface {
    19  //	  **int8 | **int64 | **string | types.Scanner | json.Unmarshaler
    20  //	}
    21  //
    22  // or alias such as
    23  //
    24  //	type Optional *Required
    25  type Optional interface{}
    26  
    27  // RequiredOrOptional is a type scan destination of ydb values
    28  // This is a proxy type for preparing go1.18 type set constrains such as
    29  //
    30  //	type valueType interface {
    31  //	  Required | Optional
    32  //	}
    33  type RequiredOrOptional interface{}