Skip to content

UUID Support!

Compare
Choose a tag to compare
@sskirby sskirby released this 25 Nov 21:48
· 45 commits to main since this release

Vorpal now supports UUID v4 ids!

Vorpal.define do
  # UUID v4 id!
  map Tree, primary_key_type: :uuid do
    # ..
  end

  # Also a UUID v4 id, the Rails Way!
  map Trunk, id: :uuid do
    # ..
  end

  # If you feel the need to specify an auto-incrementing integer id.
  map Branch, primary_key_type: :serial do
    # ..
  end
end

CAVEAT: Vorpal currently does NOT SUPPORT anyone but Vorpal setting the id of an entity!