discourse/migrations/lib/common/set_store/interface.rb
Gerhard Schlager 53d7a756d6
DEV: Add Migrations::SetStore to work with nested sets of data (#33593)
There are concrete implementations for a simple set, a key-value store,
and nested sets with 2 or 3 keys. The API stays the same for all
implementations and the performances is more or less the same as without
the wrapper (at least with YJIT enabled).
2025-07-24 12:11:41 +02:00

25 lines
390 B
Ruby

# frozen_string_literal: true
module Migrations::SetStore
module Interface
def add(...)
raise NotImplementedError
end
def add?(...)
raise NotImplementedError
end
def include?(...)
raise NotImplementedError
end
def bulk_add(records)
raise NotImplementedError
end
def empty?
raise NotImplementedError
end
end
end