Setu-TS
    Preparing search index...

    Interface BigtableAdapterOptionsBase

    The options both BigtableAdapterOptions arms share.

    0.2.0

    interface BigtableAdapterOptionsBase {
        instance: string;
        logQueries?: boolean;
        maxPageFetches?: number;
        tables?: Readonly<Record<string, BigtableEntityMapping>>;
    }

    Hierarchy

    Index
    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.

    0.2.0

    logQueries?: boolean

    When true, log SQL queries to the registered logger.

    0.1.0

    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.

    0.2.0

    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.

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

    0.2.0