prorm API Reference
    Preparing search index...

    Function buildVacuumSQL

    • Reclaim storage occupied by dead rows.

      Only engines that keep old row versions need this, which is why MySQL has no VACUUM: InnoDB reclaims space through its own purge threads, and the closest deliberate equivalent is OPTIMIZE TABLE.

      Parameters

      • table: string | undefined
      • dialect: string
      • quoteTable: (t: string) => string
      • options: VacuumOptions = {}

      Returns string