clickhouse-activerecord 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c1e3e82dce96b76db15803ccee1b33d8808d0c4eb542115a080d8aa3854859a
4
- data.tar.gz: 1ed698d16beeb439179b7d57139328ab47ffd25598ad5a98b314e0612166b1c2
3
+ metadata.gz: 5bfabbcebb77881c7199f5895b1c3e4a7066c2eddaeec138432434f0a754fb70
4
+ data.tar.gz: a17ff604e9b01015f4a100f1e83267aad340c847541f8aeb0467d083afeb789a
5
5
  SHA512:
6
- metadata.gz: fc3f56f9f381a583a66ed57db6a8a1457868ce29db354302991920721118415b9850ac02ae4fe7f86dccb618971b87a310c50befb8ba84ca0528b463f9e2d736
7
- data.tar.gz: c1427aa749177c0f6f97ad34db9508dadbef1f22448d83d1466e61428f8f438aab2fe90851d7f95874399d9019f19ed1dfb74bb05a4a86e183f2ad1467b32763
6
+ metadata.gz: 266b0794fe05ec58183b61cb7b7e8cefd99b44ce7fbc8a92810651f897dff514df09b48f16e8d50cdd394d7f00833039094caaf671c7e322a1a3b44c470b05df
7
+ data.tar.gz: afb3f2a22842ea4caef138ab206e73151fe237f89fa136c0fb2f4b1b160ff9e5594b4045224f8ab0c46512e1fe158eaf35cd698a66f4ff9d1542c69baebf9fa8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### Version 1.6.3 (Feb 04, 2026)
2
+
3
+ * Rename method `execute_streaming` to `execute_to_file`
4
+
1
5
  ### Version 1.6.2 (Jan 30, 2026)
2
6
 
3
7
  * Add streaming request and save response to tmp file
data/README.md CHANGED
@@ -238,7 +238,7 @@ Action.with(ActionView.select(Arel.sql('min(date)')) => :min_date).where(Arel.sq
238
238
  ### Streaming request
239
239
 
240
240
  ```ruby
241
- path = Action.connection.execute_streaming(Action.where(date: Date.current), format: 'CSVWithNames')
241
+ path = Action.connection.execute_to_file(Action.where(date: Date.current), format: 'CSVWithNames')
242
242
  # Clickhouse Stream (10.3ms) SELECT actions.* FROM actions WHERE actions.date = '2017-11-29'
243
243
  file = File.open(path)
244
244
  ```
@@ -53,8 +53,9 @@ module ActiveRecord
53
53
  end
54
54
  end
55
55
 
56
- # @return [ClickhouseActiverecord::StreamResponse]
57
- def execute_streaming(sql, name = nil, format: @response_format, settings: {})
56
+ # Execute an SQL query and save the result to a file in stream mode
57
+ # @return [String]
58
+ def execute_to_file(sql, name = nil, format: @response_format, settings: {})
58
59
  with_response_format(format) do
59
60
  log(sql, [adapter_name, 'Stream', name].compact.join(' ')) do
60
61
  statement = Statement.new(sql, format: @response_format)
@@ -1,3 +1,3 @@
1
1
  module ClickhouseActiverecord
2
- VERSION = '1.6.2'
2
+ VERSION = '1.6.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickhouse-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Odintsov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-30 00:00:00.000000000 Z
11
+ date: 2026-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler