duckdb 1.1.3.1 → 1.2.0.0

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.
@@ -19,7 +19,7 @@ module DuckDB
19
19
  # end
20
20
  # result = pending_result.execute_pending
21
21
  class PendingResult
22
- STATES = %i[ready not_ready error no_tasks].freeze
22
+ STATES = %i[ready not_ready error no_tasks].freeze # :nodoc:
23
23
 
24
24
  # returns the state of the pending result.
25
25
  # the result can be :ready, :not_ready, :error, :no_tasks.
data/lib/duckdb/result.rb CHANGED
@@ -27,39 +27,39 @@ module DuckDB
27
27
  RETURN_TYPES = %i[invalid changed_rows nothing query_result].freeze
28
28
 
29
29
  alias column_size column_count
30
- alias row_size row_count
30
+
31
+ @use_chunk_each = false
31
32
 
32
33
  class << self
33
34
  def new
34
35
  raise DuckDB::Error, 'DuckDB::Result cannot be instantiated directly.'
35
36
  end
36
37
 
37
- def use_chunk_each=(value) # :nodoc:
38
- raise('`changing DuckDB::Result.use_chunk_each to false` was deprecated.') unless value
39
-
40
- warn('`DuckDB::Result.use_chunk_each=` will be deprecated.')
41
-
42
- true
43
- end
38
+ attr_writer :use_chunk_each
44
39
 
45
- def use_chunk_each? # :nodoc:
46
- warn('`DuckDB::Result.use_chunk_each?` will be deprecated.')
47
- true
40
+ def use_chunk_each?
41
+ @use_chunk_each
48
42
  end
49
43
  end
50
44
 
51
45
  def each(&)
52
- if streaming?
53
- return _chunk_stream unless block_given?
54
-
55
- _chunk_stream(&)
56
- else
46
+ if self.class.use_chunk_each?
57
47
  return chunk_each unless block_given?
58
48
 
59
49
  chunk_each(&)
50
+ else
51
+ return _chunk_stream unless block_given?
52
+
53
+ _chunk_stream(&)
60
54
  end
61
55
  end
62
56
 
57
+ # :nodoc:
58
+ def chunk_each(&)
59
+ warn 'DuckDB::Result#chunk_each will be deprecated.'
60
+ _chunk_each(&)
61
+ end
62
+
63
63
  # returns return type. The return value is one of the following symbols:
64
64
  # :invalid, :changed_rows, :nothing, :query_result
65
65
  #
@@ -3,5 +3,5 @@
3
3
  module DuckDB
4
4
  # The version string of ruby-duckdb.
5
5
  # Currently, ruby-duckdb is NOT semantic versioning.
6
- VERSION = '1.1.3.1'
6
+ VERSION = '1.2.0.0'
7
7
  end
data/lib/duckdb.rb CHANGED
@@ -13,6 +13,7 @@ require 'duckdb/pending_result'
13
13
  require 'duckdb/appender'
14
14
  require 'duckdb/config'
15
15
  require 'duckdb/column'
16
+ require 'duckdb/logical_type'
16
17
  require 'duckdb/infinity'
17
18
 
18
19
  # DuckDB provides Ruby interface of DuckDB.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duckdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.1
4
+ version: 1.2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Suketa
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
10
+ date: 2025-02-23 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bigdecimal
@@ -91,10 +90,12 @@ extra_rdoc_files: []
91
90
  files:
92
91
  - ".gitattributes"
93
92
  - ".github/FUNDING.yml"
93
+ - ".github/workflows/make_documents.yml"
94
94
  - ".github/workflows/test_on_macos.yml"
95
95
  - ".github/workflows/test_on_ubuntu.yml"
96
96
  - ".github/workflows/test_on_windows.yml"
97
97
  - ".gitignore"
98
+ - ".rdoc_options"
98
99
  - CHANGELOG.md
99
100
  - CONTRIBUTION.md
100
101
  - Dockerfile
@@ -131,6 +132,8 @@ files:
131
132
  - ext/duckdb/extconf.rb
132
133
  - ext/duckdb/extracted_statements.c
133
134
  - ext/duckdb/extracted_statements.h
135
+ - ext/duckdb/logical_type.c
136
+ - ext/duckdb/logical_type.h
134
137
  - ext/duckdb/pending_result.c
135
138
  - ext/duckdb/pending_result.h
136
139
  - ext/duckdb/prepared_statement.c
@@ -153,6 +156,7 @@ files:
153
156
  - lib/duckdb/infinity.rb
154
157
  - lib/duckdb/interval.rb
155
158
  - lib/duckdb/library_version.rb
159
+ - lib/duckdb/logical_type.rb
156
160
  - lib/duckdb/pending_result.rb
157
161
  - lib/duckdb/prepared_statement.rb
158
162
  - lib/duckdb/result.rb
@@ -163,10 +167,10 @@ homepage: https://github.com/suketa/ruby-duckdb
163
167
  licenses:
164
168
  - MIT
165
169
  metadata:
170
+ rubygems_mfa_required: 'true'
166
171
  homepage_uri: https://github.com/suketa/ruby-duckdb
167
172
  source_code_uri: https://github.com/suketa/ruby-duckdb
168
173
  changelog_uri: https://github.com/suketa/ruby-duckdb/blob/master/CHANGELOG.md
169
- post_install_message:
170
174
  rdoc_options: []
171
175
  require_paths:
172
176
  - lib
@@ -181,8 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
185
  - !ruby/object:Gem::Version
182
186
  version: '0'
183
187
  requirements: []
184
- rubygems_version: 3.5.22
185
- signing_key:
188
+ rubygems_version: 3.6.2
186
189
  specification_version: 4
187
190
  summary: This module is Ruby binding for DuckDB database engine.
188
191
  test_files: []