Esempio n. 1
0
 /// <summary>
 /// Inserts a single row of data into this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.InsertRow(TableReference, BigQueryInsertRow, InsertOptions)"/>.
 /// </summary>
 /// <param name="row">The data to insert. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 public void InsertRow(BigQueryInsertRow row, InsertOptions options = null) =>
 _client.InsertRow(Reference, row, options);
Esempio n. 2
0
 /// <summary>
 /// Asynchronously inserts a single row of data into this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.InsertRowAsync(TableReference, BigQueryInsertRow, InsertOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="row">The data to insert. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation.</returns>
 public Task InsertRowAsync(BigQueryInsertRow row, InsertOptions options = null, CancellationToken cancellationToken = default) =>
 _client.InsertRowAsync(Reference, row, options, cancellationToken);
Esempio n. 3
0
 /// <summary>
 /// Constructs a new set of insert errors related to one insert row.
 /// </summary>
 /// <param name="originalRow">The original row to which these errors are related to if known. May be null.</param>
 /// <param name="errors">The errors information.</param>
 public BigQueryInsertRowErrors(BigQueryInsertRow originalRow, IReadOnlyList <InsertErrorsData> errors)
 {
     GaxPreconditions.CheckArgument(errors?.Count > 0, nameof(errors), "Can't be null or empty");
     _errors     = errors;
     OriginalRow = originalRow;
 }