Class: ClickHouse::Client::BindIndexManager

Inherits:
Object
  • Object
show all
Defined in:
lib/click_house/client/bind_index_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(start_index = 1) ⇒ BindIndexManager

Returns a new instance of BindIndexManager.



6
7
8
# File 'lib/click_house/client/bind_index_manager.rb', line 6

def initialize(start_index = 1)
  @current_index = start_index
end

Instance Method Details

#next_bind_strObject



10
11
12
13
14
# File 'lib/click_house/client/bind_index_manager.rb', line 10

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