interface BigtableAdapterOptionsBase
extends Pick<DatabaseAdapterOptions, "logQueries">
Since 0.2.0

The options both BigtableAdapterOptions arms share.

Properties

Since 0.2.0
readonly
instance: string

The Bigtable instance the tables live in. Required on both arms: a table is addressed as project/instance/table, and neither an injected client nor a project id encodes the instance.

Since 0.2.0
readonly
optional
tables: Readonly<Record<string, BigtableEntityMapping>>

Per-entity table, row-key, column and value-encoding overrides, keyed by the entity name passed to getRepository().

An entity with no entry uses its own name as the table, composes its row key from ['id'], writes to column family 'cf' and stores tagged values.

Since 0.2.0
readonly
optional
maxPageFetches: number

How many server round trips one findPage may take before it returns a bounded — but explicitly non-terminal — page. Defaults to 10.

The bound exists because a client-side filter can empty a whole raw batch: without it, a highly selective predicate over a large key range would scan indefinitely inside one request.

Usage

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