Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bind_index_manager.rb « client « click_house « lib « click_house-client « gems - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 618b13f2fd7045780983705eb54604a599777896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module ClickHouse
  module Client
    class BindIndexManager
      def initialize(start_index = 1)
        @current_index = start_index
      end

      def next_bind_str
        bind_str = "$#{@current_index}"
        @current_index += 1
        bind_str
      end
    end
  end
end