bigquery

package
v0.5.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataProviderEndpoints

func MetadataProviderEndpoints() []proofevidence.Endpoint

Types

type Column

type Column = sqlconnector.Column

Column aliases the shared SQL connector column shape for BigQuery introspection tests.

type Config

type Config = bigqueryclient.Config

Config holds BigQuery connector configuration used by the Braidplane adapter.

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector adapts BigQuery provider operations to Braidplane connector contracts.

func New

func New(ctx context.Context, config Config, creds Credentials) (*Connector, error)

New creates a BigQuery connector backed by the provider REST client.

func (*Connector) Close

func (c *Connector) Close() error

Close releases provider client resources.

func (*Connector) Execute

func (c *Connector) Execute(
	ctx context.Context,
	queryData json.RawMessage,
	params map[string]types.TypedParam,
	limits ...types.ExecutionLimits,
) (*result.ExecutionResult, error)

Execute runs a BigQuery query or append-style row insert operation.

func (*Connector) GetCapabilities

func (c *Connector) GetCapabilities() sqlconnector.Capabilities

GetCapabilities reports BigQuery's SQL-shaped connector capabilities.

func (*Connector) IntrospectSchema

func (c *Connector) IntrospectSchema(ctx context.Context) (*sqlconnector.Schema, error)

IntrospectSchema maps BigQuery datasets, tables, and fields into the shared SQL schema shape.

func (*Connector) TestConnection

func (c *Connector) TestConnection(ctx context.Context) error

TestConnection verifies that the configured BigQuery project can be reached.

type Credentials

type Credentials = bigqueryclient.Credentials

Credentials holds write-only BigQuery service-account credentials.

type Dataset

type Dataset = bigqueryclient.Dataset

Dataset is a normalized BigQuery dataset reference.

type Field

type Field = bigqueryclient.Field

Field contains BigQuery field metadata or query result field metadata.

type GetTableRequest

type GetTableRequest = bigqueryclient.GetTableRequest

GetTableRequest identifies a provider table metadata request.

type InsertRowsRequest

type InsertRowsRequest = bigqueryclient.InsertRowsRequest

InsertRowsRequest describes a bound BigQuery insertRows request.

type InsertRowsResult

type InsertRowsResult = bigqueryclient.InsertRowsResult

InsertRowsResult reports provider insertRows results.

type ListDatasetsRequest

type ListDatasetsRequest = bigqueryclient.ListDatasetsRequest

ListDatasetsRequest identifies a provider dataset-list request.

type ListTablesRequest

type ListTablesRequest = bigqueryclient.ListTablesRequest

ListTablesRequest identifies a provider table-list request.

type QueryParameter

type QueryParameter = bigqueryclient.QueryParameter

QueryParameter is one BigQuery named query parameter.

type QueryRequest

type QueryRequest = bigqueryclient.QueryRequest

QueryRequest describes a bound BigQuery query request.

type QueryResult

type QueryResult = bigqueryclient.QueryResult

QueryResult contains normalized provider rows before Braidplane value coercion.

type SchemaIntrospector

type SchemaIntrospector interface {
	IntrospectSchema(ctx context.Context) (*sqlconnector.Schema, error)
}

SchemaIntrospector retrieves BigQuery schema metadata.

type Table

type Table = bigqueryclient.Table

Table is a normalized BigQuery table reference.

type TableMetadata

type TableMetadata = bigqueryclient.TableMetadata

TableMetadata contains BigQuery table schema metadata.

type TableMetadataObserver

type TableMetadataObserver struct {
	OAuth     bool   `json:"oauth,omitempty"`
	ProjectID string `json:"project_id"`
	DatasetID string `json:"dataset_id"`
	TableID   string `json:"table_id"`
}

TableMetadataObserver identifies one table, including its owning dataset.

func (TableMetadataObserver) AssessMetadata

func (TableMetadataObserver) Description

func (o TableMetadataObserver) Description() string

func (TableMetadataObserver) MatchesResource

func (o TableMetadataObserver) MatchesResource(config, operation json.RawMessage, source bool) bool

func (TableMetadataObserver) Plan

func (TableMetadataObserver) ReadMetadata

type TableMetadataSnapshot

type TableMetadataSnapshot struct {
	TableType client.TableType `json:"table_type"`
	Fields    []client.Field   `json:"fields"`
}

type TestConnectionRequest

type TestConnectionRequest = bigqueryclient.TestConnectionRequest

TestConnectionRequest identifies a provider connection-test request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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