duckdb 0.10.1.0 → 0.10.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2100acff5462ba1ae39b45795b53969911ff7e567007875098cebc536b6b3a1
4
- data.tar.gz: c99f55d6e6b9d535f75ed6759daaddb0ef39dc49ee1861cc1a1b7c18a914ea6d
3
+ metadata.gz: 5d0e4ea548efd175f016a60729dede05c52186b5880f8294be73a478103c779f
4
+ data.tar.gz: 818ff72b5cf52cf7126a3890f193b89e14543ccfdecb89ab2403b14db06adaa4
5
5
  SHA512:
6
- metadata.gz: 112837a9b6df91ff4db6ebd489c1ad04fbacac7eea0d778d3c82ecc21ef1c0772cbca42123a99f39a170585fbbaf0cba5f904809cac2dd71a8e7fe2b474fe71b
7
- data.tar.gz: b6b2b47cff49a552e51d53988f03f73dd2163ec06877114a019bbaf155c2519417465e3fe208a15cdaf4953df6749661786f2ca627fb42488fbae7f466b77e97
6
+ metadata.gz: 3c3545aca891371ccfaf570cd3a5b8c30be7743a8c34c0a05fce4685807dc9f47982a78d4379294f229e57c799d40521f1d380c21195b91379561b6db44e8069
7
+ data.tar.gz: 3059228114add85257763c498cf2093b089c4bbf5fb05c21df63de88c6d8384169a55b1a26767ee2b85c204f97116b8e95e71652e220cc9666f7e689c859640c
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  ruby: ['3.0.6', '3.1.4', '3.2.3', '3.3.0', 'head']
19
- duckdb: ['0.9.2', '0.10.0', '0.10.1']
19
+ duckdb: ['0.9.2', '0.10.0', '0.10.1', '0.10.2']
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v3
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  ruby: ['3.0.6', '3.1.4', '3.2.3', '3.3.0', 'head']
19
- duckdb: ['0.9.2', '0.10.0', '0.10.1']
19
+ duckdb: ['0.9.2', '0.10.0', '0.10.1', '0.10.2']
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v3
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  ruby: ['3.0.6', '3.1.4', '3.2.2', '3.3.0', 'ucrt', 'mingw', 'mswin', 'head']
19
- duckdb: ['0.9.2', '0.10.0', '0.10.1']
19
+ duckdb: ['0.9.2', '0.10.0', '0.10.1', '0.10.2']
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ # 0.10.2.0 - 2024-04-20
8
+ - remove version from docker-compose.yml.
9
+ - bump to duckdb v0.10.2.
10
+
11
+ # 0.10.1.1 - 2024-03-31
12
+ - fix error using binding with name (issue #612).
13
+ Thanks to pere73.
14
+
7
15
  # 0.10.1.0 - 2024-03-22
8
16
  - drop duckdb v0.8.x.
9
17
  - fix column type failures with duckdb v0.10.1.
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  ARG RUBY_VERSION=3.2.2
2
2
  FROM ruby:${RUBY_VERSION}
3
3
 
4
- ARG DUCKDB_VERSION=0.10.0
4
+ ARG DUCKDB_VERSION=0.10.2
5
5
 
6
6
  RUN apt update -qq && \
7
7
  apt install -y build-essential curl git wget
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- duckdb (0.10.1.0)
4
+ duckdb (0.10.2.0)
5
5
  bigdecimal (>= 3.1.4)
6
6
 
7
7
  GEM
@@ -9,15 +9,15 @@ GEM
9
9
  specs:
10
10
  benchmark-ips (2.13.0)
11
11
  bigdecimal (3.1.7)
12
- mini_portile2 (2.8.5)
12
+ mini_portile2 (2.8.6)
13
13
  minitest (5.22.3)
14
- nokogiri (1.16.3)
14
+ nokogiri (1.16.4)
15
15
  mini_portile2 (~> 2.8.2)
16
16
  racc (~> 1.4)
17
- nokogiri (1.16.3-x86_64-linux)
17
+ nokogiri (1.16.4-x86_64-linux)
18
18
  racc (~> 1.4)
19
19
  racc (1.7.3)
20
- rake (13.1.0)
20
+ rake (13.2.1)
21
21
  rake-compiler (1.2.7)
22
22
  rake
23
23
  ruby_memcheck (2.3.0)
data/docker-compose.yml CHANGED
@@ -1,4 +1,3 @@
1
- version: '3'
2
1
  services:
3
2
  ubuntu:
4
3
  build:
@@ -6,12 +6,8 @@ static void deallocate(void *ctx);
6
6
  static VALUE allocate(VALUE klass);
7
7
  static size_t memsize(const void *p);
8
8
  static VALUE duckdb_connection_disconnect(VALUE self);
9
-
10
- #ifdef HAVE_DUCKDB_H_GE_V090
11
9
  static VALUE duckdb_connection_interrupt(VALUE self);
12
10
  static VALUE duckdb_connection_query_progress(VALUE self);
13
- #endif
14
-
15
11
  static VALUE duckdb_connection_connect(VALUE self, VALUE oDuckDBDatabase);
16
12
  static VALUE duckdb_connection_query_sql(VALUE self, VALUE str);
17
13
 
@@ -69,7 +65,6 @@ static VALUE duckdb_connection_disconnect(VALUE self) {
69
65
  return self;
70
66
  }
71
67
 
72
- #ifdef HAVE_DUCKDB_H_GE_V090
73
68
  /*
74
69
  * call-seq:
75
70
  * connection.interrupt -> nil
@@ -126,7 +121,6 @@ static VALUE duckdb_connection_query_progress(VALUE self) {
126
121
  return DBL2NUM(progress);
127
122
  #endif
128
123
  }
129
- #endif
130
124
 
131
125
  static VALUE duckdb_connection_connect(VALUE self, VALUE oDuckDBDatabase) {
132
126
  rubyDuckDBConnection *ctx;
@@ -169,10 +163,8 @@ void rbduckdb_init_duckdb_connection(void) {
169
163
  rb_define_alloc_func(cDuckDBConnection, allocate);
170
164
 
171
165
  rb_define_method(cDuckDBConnection, "disconnect", duckdb_connection_disconnect, 0);
172
- #ifdef HAVE_DUCKDB_H_GE_V090
173
166
  rb_define_method(cDuckDBConnection, "interrupt", duckdb_connection_interrupt, 0);
174
167
  rb_define_method(cDuckDBConnection, "query_progress", duckdb_connection_query_progress, 0);
175
- #endif
176
168
  rb_define_private_method(cDuckDBConnection, "_connect", duckdb_connection_connect, 1);
177
169
  rb_define_private_method(cDuckDBConnection, "query_sql", duckdb_connection_query_sql, 1);
178
170
  }
@@ -26,6 +26,7 @@ def check_duckdb_library(library, func, version)
26
26
  '/opt/homebrew/opt/duckdb/lib',
27
27
  '/opt/local/lib'
28
28
  )
29
+ have_func(func, 'duckdb.h')
29
30
  return if found
30
31
 
31
32
  library_name = duckdb_library_name(library)
@@ -51,9 +52,10 @@ end
51
52
  dir_config('duckdb')
52
53
 
53
54
  check_duckdb_header('duckdb.h', DUCKDB_REQUIRED_VERSION)
55
+ check_duckdb_library('duckdb', 'duckdb_bind_parameter_index', DUCKDB_REQUIRED_VERSION)
54
56
 
55
57
  # check duckdb >= 0.9.0
56
- check_duckdb_library('duckdb', 'duckdb_bind_parameter_index', DUCKDB_REQUIRED_VERSION)
58
+ have_func('duckdb_bind_parameter_index', 'duckdb.h')
57
59
 
58
60
  # check duckdb >= 0.10.0
59
61
  have_func('duckdb_appender_column_count', 'duckdb.h')
@@ -8,11 +8,7 @@ static size_t memsize(const void *p);
8
8
  static VALUE duckdb_pending_result_initialize(int argc, VALUE *args, VALUE self);
9
9
  static VALUE duckdb_pending_result_execute_task(VALUE self);
10
10
  static VALUE duckdb_pending_result_execute_pending(VALUE self);
11
-
12
- #ifdef HAVE_DUCKDB_H_GE_V090
13
11
  static VALUE duckdb_pending_result_execution_finished_p(VALUE self);
14
- #endif
15
-
16
12
  static VALUE duckdb_pending_result__state(VALUE self);
17
13
 
18
14
  static const rb_data_type_t pending_result_data_type = {
@@ -81,12 +77,10 @@ static VALUE duckdb_pending_result_execute_task(VALUE self) {
81
77
  return Qnil;
82
78
  }
83
79
 
84
- #ifdef HAVE_DUCKDB_H_GE_V090
85
80
  static VALUE duckdb_pending_result_execution_finished_p(VALUE self) {
86
81
  rubyDuckDBPendingResult *ctx = get_struct_pending_result(self);
87
82
  return duckdb_pending_execution_is_finished(ctx->state) ? Qtrue : Qfalse;
88
83
  }
89
- #endif
90
84
 
91
85
  /*
92
86
  * call-seq:
@@ -131,9 +125,6 @@ void rbduckdb_init_duckdb_pending_result(void) {
131
125
  rb_define_method(cDuckDBPendingResult, "initialize", duckdb_pending_result_initialize, -1);
132
126
  rb_define_method(cDuckDBPendingResult, "execute_task", duckdb_pending_result_execute_task, 0);
133
127
  rb_define_method(cDuckDBPendingResult, "execute_pending", duckdb_pending_result_execute_pending, 0);
134
-
135
- #ifdef HAVE_DUCKDB_H_GE_V090
136
128
  rb_define_method(cDuckDBPendingResult, "execution_finished?", duckdb_pending_result_execution_finished_p, 0);
137
- #endif
138
129
  rb_define_private_method(cDuckDBPendingResult, "_state", duckdb_pending_result__state, 0);
139
130
  }
@@ -10,12 +10,10 @@ static VALUE duckdb_prepared_statement_nparams(VALUE self);
10
10
  static VALUE duckdb_prepared_statement_execute(VALUE self);
11
11
  static idx_t check_index(VALUE vidx);
12
12
 
13
- #ifdef HAVE_DUCKDB_H_GE_V090
14
13
  static VALUE duckdb_prepared_statement_bind_parameter_index(VALUE self, VALUE name);
15
14
  #ifdef HAVE_DUCKDB_PARAMETER_NAME
16
15
  static VALUE duckdb_prepared_statement_parameter_name(VALUE self, VALUE vidx);
17
16
  #endif
18
- #endif
19
17
 
20
18
  static VALUE duckdb_prepared_statement_bind_bool(VALUE self, VALUE vidx, VALUE val);
21
19
  static VALUE duckdb_prepared_statement_bind_int8(VALUE self, VALUE vidx, VALUE val);
@@ -101,7 +99,6 @@ static idx_t check_index(VALUE vidx) {
101
99
  return idx;
102
100
  }
103
101
 
104
- #ifdef HAVE_DUCKDB_H_GE_V090
105
102
  static VALUE duckdb_prepared_statement_bind_parameter_index(VALUE self, VALUE name) {
106
103
  rubyDuckDBPreparedStatement *ctx;
107
104
  idx_t idx;
@@ -132,7 +129,6 @@ static VALUE duckdb_prepared_statement_parameter_name(VALUE self, VALUE vidx) {
132
129
  return vname;
133
130
  }
134
131
  #endif /* HAVE_DUCKDB_PARAMETER_NAME */
135
- #endif /* HAVE_DUCKDB_H_GE_V090 */
136
132
 
137
133
  static VALUE duckdb_prepared_statement_bind_bool(VALUE self, VALUE vidx, VALUE val) {
138
134
  rubyDuckDBPreparedStatement *ctx;
@@ -355,13 +351,12 @@ void rbduckdb_init_duckdb_prepared_statement(void) {
355
351
  rb_define_method(cDuckDBPreparedStatement, "initialize", duckdb_prepared_statement_initialize, 2);
356
352
  rb_define_method(cDuckDBPreparedStatement, "execute", duckdb_prepared_statement_execute, 0);
357
353
  rb_define_method(cDuckDBPreparedStatement, "nparams", duckdb_prepared_statement_nparams, 0);
358
-
359
- #ifdef HAVE_DUCKDB_H_GE_V090
360
354
  rb_define_method(cDuckDBPreparedStatement, "bind_parameter_index", duckdb_prepared_statement_bind_parameter_index, 1);
355
+
361
356
  #ifdef HAVE_DUCKDB_PARAMETER_NAME
362
357
  rb_define_method(cDuckDBPreparedStatement, "parameter_name", duckdb_prepared_statement_parameter_name, 1);
363
358
  #endif
364
- #endif
359
+
365
360
  rb_define_method(cDuckDBPreparedStatement, "bind_bool", duckdb_prepared_statement_bind_bool, 2);
366
361
  rb_define_method(cDuckDBPreparedStatement, "bind_int8", duckdb_prepared_statement_bind_int8, 2);
367
362
  rb_define_method(cDuckDBPreparedStatement, "bind_int16", duckdb_prepared_statement_bind_int16, 2);
@@ -4,10 +4,6 @@
4
4
  #include "ruby.h"
5
5
  #include <duckdb.h>
6
6
 
7
- #ifdef HAVE_DUCKDB_BIND_PARAMETER_INDEX
8
- #define HAVE_DUCKDB_H_GE_V090 1
9
- #endif
10
-
11
7
  #ifdef HAVE_DUCKDB_APPENDER_COLUMN_COUNT
12
8
  #define HAVE_DUCKDB_H_GE_V0_10_0 1
13
9
  #endif
@@ -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 = '0.10.1.0'
6
+ VERSION = '0.10.2.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duckdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1.0
4
+ version: 0.10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Suketa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal