Setu-TS
    Preparing search index...

    Interface IAuditDbClient

    Structural shape of an injected database client facade. The DB backend is inject-only — it never touches the database capability token.

    interface IAuditDbClient {
        insert(table: string, row: Record<string, unknown>): Promise<void>;
        select(
            table: string,
            criteria?: Record<string, unknown>,
        ): Promise<Record<string, unknown>[]>;
    }
    Index
    • Parameters

      • table: string
      • Optionalcriteria: Record<string, unknown>

      Returns Promise<Record<string, unknown>[]>