Sha256: 91bf620842142c29b27fc324767da6333a9435b123636fcadb58a3b836f46561

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

module MessageStore
  module Postgres
    module Get
      class Category
        include Get

        def self.command_text(parameters)
          "SELECT * FROM get_category_messages(#{parameters});"
        end

        def last_position(batch)
          batch.last.global_position
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
evt-message_store-postgres-1.2.0.0 lib/message_store/postgres/get/category.rb
evt-message_store-postgres-1.1.0.0 lib/message_store/postgres/get/category.rb