type alias BigtableAdapterOptions
Since 0.2.0

Options for the BigtableAdapter — the 'bigtable' arm.

A union of two arms, so supplying neither a projectId nor a client is a compile error rather than a connect() throw. Both members stay readable on either arm, so the adapter reads options.client and options.projectId without narrowing first.

Examples

Example 1

const lazy: BigtableAdapterOptions = { projectId: 'p', instance: 'i' };
const injected: BigtableAdapterOptions = { client: myBigtableClient, instance: 'i' };

Definition

(
BigtableAdapterOptionsBase
& { readonly projectId: string; readonly apiEndpoint?: string; readonly client?: IBigtableClient; }
)

| (
BigtableAdapterOptionsBase
& { readonly client: IBigtableClient; readonly projectId?: string; readonly apiEndpoint?: string; }
)

Usage

import { type BigtableAdapterOptions } from "database-plugin/src/index.ts";