Example #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());
     }
 }
Example #2
0
 string PrepareCommandText(BigQueryCommand command)
 {
     return(command.CommandType == CommandType.TableDirect
                ? $"SELECT * FROM {GetLead()}{command.Connection.DataSetId}.{command.CommandText}{GetEnd()}"
                : command.CommandText);
 }
Example #3
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;
 }