A SQL statement to be executed against a BigQuery data source.
Inheritance: System.Data.Common.DbCommand, ICloneable
Ejemplo n.º 1
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());
     }
 }
Ejemplo 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());
     }
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 string PrepareCommandText(BigQueryCommand command) {
     return command.CommandType == CommandType.TableDirect 
                ? $"SELECT * FROM {GetLead()}{command.Connection.DataSetId}.{command.CommandText}{GetEnd()}" 
                : command.CommandText;
 }
Ejemplo n.º 5
0
 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;
 }