prorm API Reference
    Preparing search index...

    Function buildClusterSQL

    • Rewrite a table in the physical order of one index.

      PostgreSQL only. Worth it when a table is read in a predictable order and the index is not covering; the ordering decays as rows are updated.

      Parameters

      • table: string
      • index: string | undefined
      • dialect: string
      • quoteTable: (t: string) => string
      • quoteId: (id: string) => string

      Returns string