duckdb 0.10.1.0 → 0.10.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/ext/duckdb/connection.c +0 -8
- data/ext/duckdb/extconf.rb +3 -1
- data/ext/duckdb/pending_result.c +0 -9
- data/ext/duckdb/prepared_statement.c +2 -7
- data/ext/duckdb/ruby-duckdb.h +0 -4
- data/lib/duckdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d937467c3c4f50946242d38224cfd0954d17a2a5ade0a3a5b72d7611a482e45
|
4
|
+
data.tar.gz: 69ca3178c0aaeab610ee663e0a1f47f3b96f685db84f4f4816be0d142a7276c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39735bf906776ac331c4eb3daef1091dda9d70668216825b9eab4aafd82f7c667045677aba13f8438d7ff13213b3ee9c8dba8e806e20c9eec377a67ab4c1e741
|
7
|
+
data.tar.gz: b53af70bbeeea1eea3cf5f3c161faea38249dacbc1ee26b13416540818edac64632f07a3af67cd9c79457c2c5aad85abb4183f878c97c5cbdd48b87adbf0e5ed
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## Unreleased
|
6
6
|
|
7
|
+
# 0.10.1.1 - 2024-03-31
|
8
|
+
- fix error using binding with name (issue #612).
|
9
|
+
Thanks to pere73.
|
10
|
+
|
7
11
|
# 0.10.1.0 - 2024-03-22
|
8
12
|
- drop duckdb v0.8.x.
|
9
13
|
- fix column type failures with duckdb v0.10.1.
|
data/Gemfile.lock
CHANGED
data/ext/duckdb/connection.c
CHANGED
@@ -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
|
}
|
data/ext/duckdb/extconf.rb
CHANGED
@@ -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
|
-
|
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')
|
data/ext/duckdb/pending_result.c
CHANGED
@@ -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
|
-
|
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);
|
data/ext/duckdb/ruby-duckdb.h
CHANGED
data/lib/duckdb/version.rb
CHANGED
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.
|
4
|
+
version: 0.10.1.1
|
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-
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|