public void bindIterable()

in cloud-spanner-r2dbc/src/main/java/com/google/cloud/spanner/r2dbc/SpannerType.java [55:67]


  public void bindIterable(ValueBinder<Statement.Builder> binder, Iterable<?> value) {
    if (!this.isArray()) {
      throw new BindingFailureException("Iterable cannot be bound to a non-array Spanner type.");
    }

    IterableStatementBinder typedBinder =
        ARRAY_BINDERS.get(this.type.getArrayElementType().getCode());
    if (typedBinder == null) {
      throw new BindingFailureException("Array binder not found for type " + this.type);
    }
    typedBinder.bind(binder, value);

  }