Class GoogleBigQueryDataProvider
- Namespace
- combit.Reporting.DataProviders
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Provides a data provider implementation for Google BigQuery.
public sealed class GoogleBigQueryDataProvider : IDataProvider
- Inheritance
-
GoogleBigQueryDataProvider
- Implements
- Inherited Members
Remarks
This provider executes BigQuery SQL queries and exposes the results as tables.
Constructors
GoogleBigQueryDataProvider(string, string, string, string)
Initializes a new instance of the GoogleBigQueryDataProvider class.
public GoogleBigQueryDataProvider(string projectId, string refreshToken, string clientId, string clientSecret)
Parameters
projectIdstringThe Google Cloud project identifier.
refreshTokenstringThe refresh token for authentication.
clientIdstringThe client identifier.
clientSecretstringThe client secret.
Properties
ClientId
Gets the client identifier.
public string ClientId { get; }
Property Value
ProjectId
Gets the Google Cloud project identifier.
public string ProjectId { get; }
Property Value
RefreshToken
Gets the refresh token used for authentication.
public string RefreshToken { get; }
Property Value
RowsPerDataRequest
Gets or sets the maximum number of rows per data request.
public int RowsPerDataRequest { get; set; }
Property Value
Methods
AddQuery(string, string)
Adds a new query to the provider.
public void AddQuery(string tableName, string query)
Parameters
tableNamestringThe name of the table to be created from the query results.
querystringThe SQL query to execute in BigQuery.
Exceptions
- ListLabelException
Thrown if the table name or query is empty.