Module googleapis.bigquery

ballerinax/googleapis.bigquery Ballerina library

1.5.1

Overview

This is a generated connector for Google BigQuery API v2.0 OpenAPI specification. The BigQuery API provides access to create, manage, share and query data.

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

Metadata

Released date: 10 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 

Current verison: 1


Weekly downloads


Source repository


Keywords

IT Operations/Databases
Cost/Freemium
Vendor/Google

Contributors

Other versions

See more...