@earth-app/collegedb
    Preparing search index...

    Function updateRow

    • Updates rows built from a changes object, scoped by a WHERE map.

      Type Parameters

      • T = Record<string, unknown>

        Type of returned rows when RETURNING is used

      Parameters

      • key: string

        Primary key used for shard routing

      • table: string

        Target table name

      • values: ColumnValues

        Column to value map of changes to apply

      • where: ColumnValues

        Column to value equality conditions (required; empty throws)

      • options: CrudReturningOptions = {}

        Update modifiers (returning)

      Returns Promise<QueryResult<T>>

      The write result

      1.2.4

      await updateRow('user-123', 'users', { username: 'ada2' }, { id: 'user-123' });