Sha256: 4590beab9a756bd10aa5646f488dc49f92299f6603635db724342c9249cd4d9f

Contents?: true

Size: 926 Bytes

Versions: 11

Compression:

Stored size: 926 Bytes

Contents

module PgEventstore
  module Web
    module Paginator
      class EventsCollection < PgEventstore::Web::Paginator::BaseCollection
        SQL_DIRECTIONS: ::Hash[String, Symbol]
        PER_PAGE: ::Hash[String, Integer]
        MAX_NUMBER_TO_COUNT: Integer

        def collection: () -> ::Array[PgEventstore::Event]

        def next_page_starting_id: () -> Integer?

        def prev_page_starting_id: () -> Integer?

        def total_count: () -> Integer

        # _@param_ `event`
        def event_global_position: (PgEventstore::Event event) -> Integer?

        # _@param_ `sql_builder`
        def estimate_count: (PgEventstore::SQLBuilder sql_builder) -> Integer

        # _@param_ `sql_builder`
        def regular_count: (PgEventstore::SQLBuilder sql_builder) -> Integer

        # _@param_ `sql_builder`
        def global_position: (PgEventstore::SQLBuilder sql_builder) -> Integer?
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pg_eventstore-1.6.0 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.5.0 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.4.0 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.3.4 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.3.3 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.3.2 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.3.1 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.3.0 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.2.0 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.1.5 sig/pg_eventstore/web/paginator/events_collection.rbs
pg_eventstore-1.1.4 sig/pg_eventstore/web/paginator/events_collection.rbs