property BigtableAdapterOptionsBase.tables
Since 0.2.0

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.

Examples

Example 1

const tables = {
  Order: {
    table: 'orders',
    rowKey: { fields: ['tenantId', 'orderId'], separator: '#' },
    columnFamily: 'o',
    columns: { total: 'metrics:total' },
  },
};

Type

Readonly<Record<string, BigtableEntityMapping>>

Usage

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