Setu-TS
    Preparing search index...

    Class DynamoAdapter

    The DynamoDB adapter — a key-value store backend served through the portable data-access contract.

    import { DatabasePlugin } from '@setu-ts/database-plugin';

    app.register(DatabasePlugin({
    type: 'dynamodb',
    options: { region: 'us-east-1' },
    }));

    0.2.0

    Implements

    Index
    • Creates the adapter.

      Parameters

      • options: DynamoAdapterOptions

        The 'dynamodb' arm options; region is required unless client is supplied

      Returns DynamoAdapter

      When neither region nor client is supplied. A typed caller cannot reach this — DynamoAdapterOptions is a union whose arms each require one of the two — but the plugin builds the bag through an untyped carry (buildAdapterOptions), so the runtime guard is the backstop for that cast rather than dead code.

      When an injected client lacks the driven surface — the M52c/M52d binding-guard precedent: a mistyped client must fail at construction with a name rather than at the first request with a bare TypeError.

      When maxPageFetches is not a positive safe integer. Infinity would silently DISABLE the very bound the option configures (measured: a findPage whose filter matches nothing scans the whole partition to exhaustion instead of stopping), and NaN makes every fetches < maxPageFetches comparison false, collapsing the fill loop to a single server page. Both fail at construction rather than degrading a later page silently.

    transactionIsolationLevels: readonly TransactionIsolationLevel[] = []

    DynamoDB exposes no portable transaction-isolation selector.