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

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

module ClickHouse
  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