prorm API Reference
    Preparing search index...

    Interface EventSchedule

    Schedule options for MySQL events (AT timestamp or EVERY interval)

    interface EventSchedule {
        type: "AT" | "EVERY";
        timestamp?: string;
        intervalValue?: number;
        intervalUnit?:
            | "SECOND"
            | "MINUTE"
            | "HOUR"
            | "DAY"
            | "WEEK"
            | "MONTH"
            | "YEAR";
        starts?: string;
        ends?: string;
        preserve?: boolean;
    }
    Index
    type: "AT" | "EVERY"

    Schedule type: AT a specific timestamp or EVERY interval

    timestamp?: string

    Timestamp for AT schedule (YYYY-MM-DD HH:MM:SS)

    intervalValue?: number

    Interval value (e.g., 1, 2, 3)

    intervalUnit?: "SECOND" | "MINUTE" | "HOUR" | "DAY" | "WEEK" | "MONTH" | "YEAR"

    Interval unit (SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR)

    starts?: string

    STARTS clause - when to start

    ends?: string

    ENDS clause - when to end

    preserve?: boolean

    ON SCHEDULE PRESERVE - keeps event after execution