prorm API Reference
    Preparing search index...

    Interface CreateEnumTypeOptions

    Options for creating a PostgreSQL enum type (CREATE TYPE name AS ENUM (...))

    interface CreateEnumTypeOptions {
        schema?: string;
        ifNotExists?: boolean;
    }
    Index
    schema?: string

    Schema to create the type in

    ifNotExists?: boolean

    If true, checks whether the type already exists first (via pg_type) and skips creation if so. Postgres has no native CREATE TYPE IF NOT EXISTS.