prorm API Reference
    Preparing search index...

    Function buildCreateEnumSQL

    • Create a named enum type.

      PostgreSQL only as a named type. MySQL has ENUM but as a column type written inline, and SQLite has neither — on both, the equivalent is a CHECK constraint listing the values, which addConstraint builds.

      Parameters

      • name: string
      • values: string[]
      • dialect: string
      • quoteTable: (t: string) => string
      • options: EnumTypeOptions = {}

      Returns string