Function checkVersion

  • Throws unless next is one above stored (or 1 for a row that does not exist).

    Parameters

    • table: string
    • key: string
    • stored: undefined | number
    • next: number

    Returns void