Module googleapis.bigquery

ballerinax/googleapis.bigquery Ballerina library

1.5.2

Overview

The Google BigQuery API v2.0 connector(https://cloud.google.com/bigquery/docs/reference/rest) OpenAPI specification. The BigQuery API provides access to create, manage, share and query data.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Google BigQuery connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/googleapis.bigquery module into the Ballerina project.

Copy
import ballerinax/googleapis.bigquery;

Step 2: Create a new connector instance

Create a bigquery:ClientConfig with the OAuth2 tokens obtained, and initialize the connector with it.

Copy
bigquery:ClientConfig clientConfig = {auth : {token: "<Your access token>"}};
bigquery:Client baseClient = check new Client(clientConfig);

Step 3: Invoke connector operation

  1. Now you can invoke the connector operations as follows,

    List projects

    Copy
    public function main() returns error? {
        bigquery:ProjectList projectList = check baseClient->listProjects();
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/googleapis.bigquery;Copy

Other versions

See more...

Metadata

Released date: 3 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 96

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

IT Operations/Database

Cost/Freemium

Vendor/Google

Area/Database


Contributors