prorm API Reference
    Preparing search index...

    Function buildCommentOnColumnSQL

    • Attach a comment to a column.

      PostgreSQL only. MySQL stores a column comment inside the column definition, so changing it means restating the column's full type and constraints — do that through changeColumn(), which has them.

      Parameters

      • table: string
      • column: string
      • comment: string | null
      • dialect: string
      • quoteTable: (t: string) => string
      • quoteId: (id: string) => string

      Returns string