A SQL statement to be executed against a BigQuery data source.
Inheritance: System.Data.Common.DbCommand, ICloneable
 /// <summary>
 /// Initializes a new instance of the BigQueryCommand class with the specified prototype.
 /// </summary>
 /// <param name="command">A BigQueryCommand object to clone. </param>
 public BigQueryCommand(BigQueryCommand command)
     : this(command.CommandText, command.Connection) {
     commandType = command.CommandType;
     commandTimeout = command.commandTimeout;
     foreach(BigQueryParameter bigQueryParameter in command.Parameters) {
         Parameters.Add(bigQueryParameter.Clone());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the BigQueryCommand class with the specified prototype.
 /// </summary>
 /// <param name="command">A BigQueryCommand object to clone. </param>
 public BigQueryCommand(BigQueryCommand command)
     : this(command.CommandText, command.Connection)
 {
     commandType    = command.CommandType;
     commandTimeout = command.commandTimeout;
     foreach (BigQueryParameter bigQueryParameter in command.Parameters)
     {
         Parameters.Add(bigQueryParameter.Clone());
     }
 }
 /// <summary>
 /// Initializes a new instance of the BigQueryDataAdapter class.
 /// </summary>
 /// <param name="selectCommand">A BigQueryCommand object specifying a command used to obtain rows from a BigQuery data table.</param>
 public BigQueryDataAdapter(BigQueryCommand selectCommand)
 {
     SelectCommand = selectCommand;
 }
 string PrepareCommandText(BigQueryCommand command) {
     return command.CommandType == CommandType.TableDirect 
                ? $"SELECT * FROM {GetLead()}{command.Connection.DataSetId}.{command.CommandText}{GetEnd()}" 
                : command.CommandText;
 }
 internal BigQueryDataReader(CommandBehavior behavior, BigQueryCommand command, BigqueryService service) {
     this.behavior = behavior;
     bigQueryService = service;
     bigQueryCommand = command;
 }
 /// <summary>
 /// Initializes a new instance of the BigQueryDataAdapter class.
 /// </summary>
 /// <param name="selectCommand">A BigQueryCommand object specifying a command used to obtain rows from a BigQuery data table.</param>
 public BigQueryDataAdapter(BigQueryCommand selectCommand)
 {
     SelectCommand = selectCommand;
 }