interface DynamoAdapterOptionsBase
extends Pick<DatabaseAdapterOptions, "logQueries">
Since 0.1.0

The options both DynamoAdapterOptions arms share — everything that is optional regardless of how the client is supplied.

It is exported because the arms below reference it, so a caller building a configuration incrementally can name the shared half.

Properties

Since 0.1.0
readonly
optional
entities: Readonly<Record<string, DynamoEntityMapping>>

Per-entity table and key mappings, keyed by the entity name passed to getRepository().

An entity with no entry uses its own name as the table and 'id' as the partition key; a mapped entity states its partition key explicitly, because DynamoDB has no implicit key to guess — the write guards and every key builder read this attribute by name.

Since 0.1.0
readonly
optional
maxPageFetches: number

The maximum number of server pages one findPage call fetches while filling the page, defaulting to 10.

DynamoDB applies Limit before FilterExpression (M80 plan §1A Q2), so a sparse filter can return pages of fewer rows — or zero rows — that are still not the last page. On reaching the bound the page returns with a non-null cursor, never a terminal one, so the bound can only cost an extra round trip, never a lost row.

Usage

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