Class: ClickHouse::Client::BindIndexManager
- Inherits:
-
Object
- Object
- ClickHouse::Client::BindIndexManager
- Defined in:
- lib/click_house/client/bind_index_manager.rb
Instance Method Summary collapse
-
#initialize(start_index = 1) ⇒ BindIndexManager
constructor
A new instance of BindIndexManager.
- #next_bind_str ⇒ Object
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_str ⇒ Object
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 |