Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: cloud.google.com/go/bigquery

Package bigquery provides a client for the BigQuery service. The following assumes a basic familiarity with BigQuery concepts. See https://cloud.google.com/bigquery/docs. See https://godoc.org/cloud.google.com/go for authentication, timeouts, connection pooling and similar aspects of this package. To start working with this package, create a client: To query existing tables, create a Query and call its Read method, which starts the query and waits for it to complete: Then iterate through the resulting rows. You can store a row using anything that implements the ValueLoader interface, or with a slice or map of bigquery.Value. A slice is simplest: You can also use a struct whose exported fields match the query: You can also start the query running and get the results later. Create the query as above, but call Run instead of Read. This returns a Job, which represents an asynchronous operation. Get the job's ID, a printable string. You can save this string to retrieve the results at a later time, even in another process. To retrieve the job's results from the ID, first look up the Job: Use the Job.Read method to obtain an iterator, and loop over the rows. Calling Query.Read is preferred for queries with a relatively small result set, as it will call BigQuery jobs.query API for a optimized query path. If the query doesn't meet that criteria, the method will just combine Query.Run and Job.Read. You can refer to datasets in the client's project with the Dataset method, and in other projects with the DatasetInProject method: These methods create references to datasets, not the datasets themselves. You can have a dataset reference even if the dataset doesn't exist yet. Use Dataset.Create to create a dataset from a reference: You can refer to tables with Dataset.Table. Like bigquery.Dataset, bigquery.Table is a reference to an object in BigQuery that may or may not exist. You can create, delete and update the metadata of tables with methods on Table. For instance, you could create a temporary table with: We'll see how to create a table with a schema in the next section. There are two ways to construct schemas with this package. You can build a schema by hand, like so: Or you can infer the schema from a struct: Struct inference supports tags like those of the encoding/json package, so you can change names, ignore fields, or mark a field as nullable (non-required). Fields declared as one of the Null types (NullInt64, NullFloat64, NullString, NullBool, NullTimestamp, NullDate, NullTime, NullDateTime, and NullGeography) are automatically inferred as nullable, so the "nullable" tag is only needed for []byte, *big.Rat and pointer-to-struct fields. Having constructed a schema, you can create a table with it like so: You can copy one or more tables to another table. Begin by constructing a Copier describing the copy. Then set any desired copy options, and finally call Run to get a Job: You can chain the call to Run if you don't want to set options: You can wait for your job to complete: Job.Wait polls with exponential backoff. You can also poll yourself, if you wish: There are two ways to populate a table with this package: load the data from a Google Cloud Storage object, or upload rows directly from your program. For loading, first create a GCSReference, configuring it if desired. Then make a Loader, optionally configure it as well, and call its Run method. To upload, first define a type that implements the ValueSaver interface, which has a single method named Save. Then create an Inserter, and call its Put method with a slice of values. You can also upload a struct that doesn't implement ValueSaver. Use the StructSaver type to specify the schema and insert ID by hand, or just supply the struct or struct pointer directly and the schema will be inferred: BigQuery allows for higher throughput when omitting insertion IDs. To enable this, specify the sentinel `NoDedupeID` value for the insertion ID when implementing a ValueSaver. If you've been following so far, extracting data from a BigQuery table into a Google Cloud Storage object will feel familiar. First create an Extractor, then optionally configure it, and lastly call its Run method. Errors returned by this client are often of the type googleapi.Error: https://godoc.org/google.golang.org/api/googleapi#Error These errors can be introspected for more information by using `xerrors.As` with the richer *googleapi.Error type. For example: In some cases, your client may received unstructured googleapi.Error error responses. In such cases, it is likely that you have exceeded BigQuery request limits, documented at: https://cloud.google.com/bigquery/quotas
69 versions
Latest release: 4 months ago
1,220 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/cloud.google.com/go/bigquery

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/googleapis%2Fgoogle-cloud-go

Dependent Repos 101,387

admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform
  • v1.32.0 configurator/backend/go.mod
  • v1.0.1 configurator/backend/go.sum
  • v1.3.0 configurator/backend/go.sum
  • v1.4.0 configurator/backend/go.sum
  • v1.5.0 configurator/backend/go.sum
  • v1.7.0 configurator/backend/go.sum
  • v1.8.0 configurator/backend/go.sum
  • v1.32.0 configurator/backend/go.sum
  • v1.32.0 server/go.mod
  • v1.0.1 server/go.sum
  • v1.3.0 server/go.sum
  • v1.4.0 server/go.sum
  • v1.5.0 server/go.sum
  • v1.7.0 server/go.sum
  • v1.8.0 server/go.sum
  • v1.32.0 server/go.sum

Size: 29.4 MB - Last synced: 2 days ago - Pushed: 11 months ago

brotherlogic/logging
Logging for system
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum
  • v1.42.0 go.sum
  • v1.43.0 go.sum
  • v1.44.0 go.sum

Size: 616 KB - Last synced: 14 days ago - Pushed: 14 days ago

kmodules/resource-metadata
API for defining metadata about Kubernetes resources
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum

Size: 76.5 MB - Last synced: 8 days ago - Pushed: 8 days ago

vearutop/cache-story
Demo repository for a blog post.
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum

Size: 4.59 MB - Last synced: 3 months ago - Pushed: 3 months ago

ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum
  • v1.32.0 go.sum

Size: 6.45 MB - Last synced: 15 days ago - Pushed: 16 days ago

zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum

Size: 10.4 MB - Last synced: about 1 year ago - Pushed: almost 2 years ago

Sijoma/camunda-backup-clients
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum

Size: 66.4 KB - Last synced: 11 months ago - Pushed: about 1 year ago

aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum

Size: 66.8 MB - Last synced: 2 days ago - Pushed: about 1 year ago

krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.
  • v1.0.1 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.3.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.4.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.5.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.7.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.8.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.0.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.3.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.4.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.5.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.7.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.8.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.27.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.0.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.3.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.4.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.5.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.7.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.8.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.0.1 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.3.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.4.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.5.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.7.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.8.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.0.1 development/prow-installer/go.sum
  • v1.0.1 development/test-log-collector/go.sum
  • v1.3.0 development/test-log-collector/go.sum
  • v1.4.0 development/test-log-collector/go.sum
  • v1.29.0 go.mod
  • v1.0.1 go.sum
  • v1.3.0 go.sum
  • v1.4.0 go.sum
  • v1.5.0 go.sum
  • v1.7.0 go.sum
  • v1.8.0 go.sum
  • v1.29.0 go.sum

Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

ffuf-glanz/terraform-provider-azuredevops Fork of feilfeilundfeil/terraform-provider-azuredevops
Terraform provider for Azure DevOps
  • v1.0.1 go.sum

Size: 19.8 MB - Last synced: about 1 year ago - Pushed: over 1 year ago