Setu-TS
    Preparing search index...

    Interface D1EntityMapping

    How one entity name maps onto a physical D1 table.

    0.2.0

    interface D1EntityMapping {
        primaryKey?: string | readonly string[];
        table?: string;
    }
    Index
    primaryKey?: string | readonly string[]

    The primary-key column(s). A scalar name keeps today's single-column behaviour; an array enables a composite key whose columns are matched in declaration order. Defaults to ['id'].

    table?: string

    The table name. Defaults to the entity name itself, so getRepository('users') needs no mapping at all.