bigquery

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionStringAuthType  = "adbc.bigquery.sql.auth_type"
	OptionStringLocation  = "adbc.bigquery.sql.location"
	OptionStringProjectID = "adbc.bigquery.sql.project_id"
	OptionStringDatasetID = "adbc.bigquery.sql.dataset_id"
	OptionStringTableID   = "adbc.bigquery.sql.table_id"

	OptionValueAuthTypeDefault = "adbc.bigquery.sql.auth_type.auth_bigquery"

	OptionValueAuthTypeJSONCredentialFile   = "adbc.bigquery.sql.auth_type.json_credential_file"
	OptionValueAuthTypeJSONCredentialString = "adbc.bigquery.sql.auth_type.json_credential_string"
	OptionStringAuthCredentials             = "adbc.bigquery.sql.auth_credentials"

	OptionValueAuthTypeUserAuthentication = "adbc.bigquery.sql.auth_type.user_authentication"
	OptionStringAuthClientID              = "adbc.bigquery.sql.auth.client_id"
	OptionStringAuthClientSecret          = "adbc.bigquery.sql.auth.client_secret"
	OptionStringAuthRefreshToken          = "adbc.bigquery.sql.auth.refresh_token"
	OptionStringAuthQuotaProject          = "adbc.bigquery.sql.auth.quota_project"

	// OptionStringQueryParameterMode specifies if the query uses positional syntax ("?")
	// or the named syntax ("@p"). It is illegal to mix positional and named syntax.
	// Default is OptionValueQueryParameterModePositional.
	OptionStringQueryParameterMode          = "adbc.bigquery.sql.query.parameter_mode"
	OptionValueQueryParameterModeNamed      = "adbc.bigquery.sql.query.parameter_mode_named"
	OptionValueQueryParameterModePositional = "adbc.bigquery.sql.query.parameter_mode_positional"

	OptionStringQueryDestinationTable  = "adbc.bigquery.sql.query.destination_table"
	OptionStringQueryDefaultProjectID  = "adbc.bigquery.sql.query.default_project_id"
	OptionStringQueryDefaultDatasetID  = "adbc.bigquery.sql.query.default_dataset_id"
	OptionStringQueryCreateDisposition = "adbc.bigquery.sql.query.create_disposition"
	OptionStringQueryWriteDisposition  = "adbc.bigquery.sql.query.write_disposition"
	OptionBoolQueryDisableQueryCache   = "adbc.bigquery.sql.query.disable_query_cache"
	OptionBoolDisableFlattenedResults  = "adbc.bigquery.sql.query.disable_flattened_results"
	OptionBoolQueryAllowLargeResults   = "adbc.bigquery.sql.query.allow_large_results"
	OptionStringQueryPriority          = "adbc.bigquery.sql.query.priority"
	OptionIntQueryMaxBillingTier       = "adbc.bigquery.sql.query.max_billing_tier"
	OptionIntQueryMaxBytesBilled       = "adbc.bigquery.sql.query.max_bytes_billed"
	OptionBoolQueryUseLegacySQL        = "adbc.bigquery.sql.query.use_legacy_sql"
	OptionBoolQueryDryRun              = "adbc.bigquery.sql.query.dry_run"
	OptionBoolQueryCreateSession       = "adbc.bigquery.sql.query.create_session"
	OptionIntQueryJobTimeout           = "adbc.bigquery.sql.query.job_timeout"

	OptionIntQueryResultBufferSize    = "adbc.bigquery.sql.query.result_buffer_size"
	OptionIntQueryPrefetchConcurrency = "adbc.bigquery.sql.query.prefetch_concurrency"

	AccessTokenEndpoint   = "https://accounts.google.com/o/oauth2/token"
	AccessTokenServerName = "google.com"

	// WithAppDefaultCredentials instructs the driver to authenticate using
	// Application Default Credentials (ADC).
	OptionValueAuthTypeAppDefaultCredentials = "adbc.bigquery.sql.auth_type.app_default_credentials"

	// WithJSONCredentials instructs the driver to authenticate using the
	// given JSON credentials. The value should be a byte array representing
	// the JSON credentials.
	OptionValueAuthTypeJSONCredentials = "adbc.bigquery.sql.auth_type.json_credentials"

	// WithOAuthClientIDs instructs the driver to authenticate using the given
	// OAuth client ID and client secret. The value should be a string array
	// of length 2, where the first element is the client ID and the second
	// is the client secret.
	OptionValueAuthTypeOAuthClientIDs = "adbc.bigquery.sql.auth_type.oauth_client_ids"

	// OptionStringImpersonateTargetPrincipal instructs the driver to impersonate the
	// given service account email.
	OptionStringImpersonateTargetPrincipal = "adbc.bigquery.sql.impersonate.target_principal"

	// OptionStringImpersonateDelegates instructs the driver to impersonate using the
	// given comma-separated list of service account emails in the delegation
	// chain.
	OptionStringImpersonateDelegates = "adbc.bigquery.sql.impersonate.delegates"

	// OptionStringImpersonateScopes instructs the driver to impersonate using the
	// given comma-separated list of OAuth 2.0 scopes.
	OptionStringImpersonateScopes = "adbc.bigquery.sql.impersonate.scopes"

	// OptionStringImpersonateLifetime instructs the driver to impersonate for the
	// given duration (e.g. "3600s").
	OptionStringImpersonateLifetime = "adbc.bigquery.sql.impersonate.lifetime"
)

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(alloc memory.Allocator) adbc.Driver

NewDriver creates a new BigQuery driver using the given Arrow allocator.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL