duckdb 0.0.9 → 0.0.10

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: bf81ef5bf9902f3bf915c375d87d4e56b5b753a290aad2020c20757b1aaaa86b
4
- data.tar.gz: 8ef86fc4daba6aac83b83d48ee98613e4ca62fee7d9520610cf05b9afa4baaa8
3
+ metadata.gz: c714dfd673f10a53f717920a00ce3a8d1bd60bb31eaa7c3d678427216ef8446d
4
+ data.tar.gz: 8f8df0fa662a682fc977429c25a6ee41885ca4df603edfcc25cc46f960b1256a
5
5
  SHA512:
6
- metadata.gz: c5006b08f821979184ee6edd3f7ef2a47339aab1487b6208cf4ea7af2d55e846fb5f197810e265f27ca327bd4004a2778569ed7bf7adf64e371df7eb7b11c253
7
- data.tar.gz: 174232c0eef492cf9d98dc979dbe7f6960c57cb72d76d9adf2cee59cf5a09cc0643919044fa4e111c65a65b53e2bbe15b3e6891482630e72813ab73f9e6f464b
6
+ metadata.gz: e67c083420270093e6a026037527f5e10273404d0666b155ee0afd5c7e308ceae268c46ef1f878b9b6a656dec6b97e048488b85be53f715d9253e1806f8601a0
7
+ data.tar.gz: a4501b2e7dc651147564da772f60f32dafbb21ddf846680128406ad9b64dbb6874ea3b6c15cd6e5226d35745680fb7f906eca7d0c8a72bf418594c7cd2486f53
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  matrix:
11
11
  ruby: ['2.5.8', '2.6.6', '2.7.2', 'head']
12
- duckdb: ['0.2.0', '0.2.1']
12
+ duckdb: ['0.2.2', '0.2.1']
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -19,14 +19,14 @@ jobs:
19
19
  with:
20
20
  ruby-version: ${{ matrix.ruby }}
21
21
 
22
- - name: duckdb 0.2.0 cache
23
- id: duckdb-cache-v0_2_0
22
+ - name: duckdb 0.2.2 cache
23
+ id: duckdb-cache-v0_2_2
24
24
  uses: actions/cache@v1.1.0
25
25
  with:
26
- path: duckdb-v0.2.0
27
- key: ${{ runner.os }}-duckdb-v0_2_0_001
26
+ path: duckdb-v0.2.2
27
+ key: ${{ runner.os }}-duckdb-v0_2_2_001
28
28
  restore-keys: |
29
- ${{ runner.os }}-duckdb-v0_2_0
29
+ ${{ runner.os }}-duckdb-v0_2_2
30
30
 
31
31
  - name: duckdb 0.2.1 cache
32
32
  id: duckdb-cache-v0_2_1
@@ -37,15 +37,15 @@ jobs:
37
37
  restore-keys: |
38
38
  ${{ runner.os }}-duckdb-v0_2_1
39
39
 
40
- - name: Build duckdb 0.2.0
41
- if: steps.duckdb-cache-v0_2_0.outputs.cache-hit != 'true'
40
+ - name: Build duckdb 0.2.2
41
+ if: steps.duckdb-cache-v0_2_2.outputs.cache-hit != 'true'
42
42
  run: |
43
- git clone -b v0.2.0 https://github.com/cwida/duckdb.git duckdb-tmp-v0.2.0
44
- cd duckdb-tmp-v0.2.0 && make && cd ..
45
- rm -rf duckdb-v0.2.0
46
- mkdir -p duckdb-v0.2.0/build/release/src duckdb-v0.2.0/src
47
- cp -rip duckdb-tmp-v0.2.0/build/release/src/*.so duckdb-v0.2.0/build/release/src
48
- cp -rip duckdb-tmp-v0.2.0/src/include duckdb-v0.2.0/src/
43
+ git clone -b v0.2.2 https://github.com/cwida/duckdb.git duckdb-tmp-v0.2.2
44
+ cd duckdb-tmp-v0.2.2 && make && cd ..
45
+ rm -rf duckdb-v0.2.2
46
+ mkdir -p duckdb-v0.2.2/build/release/src duckdb-v0.2.2/src
47
+ cp -rip duckdb-tmp-v0.2.2/build/release/src/*.so duckdb-v0.2.2/build/release/src
48
+ cp -rip duckdb-tmp-v0.2.2/src/include duckdb-v0.2.2/src/
49
49
 
50
50
  - name: Build duckdb 0.2.1
51
51
  if: steps.duckdb-cache-v0_2_1.outputs.cache-hit != 'true'
@@ -2,13 +2,13 @@ language: ruby
2
2
  cache:
3
3
  bundler: true
4
4
  directories:
5
- - ${HOME}/duckdb-v0.2.1
5
+ - ${HOME}/duckdb-v0.2.2
6
6
  before_install:
7
7
  - yes | gem update --system
8
- - if [[ ! -d ${HOME}/duckdb-v0.2.1/build ]]; then cd ${HOME} && git clone -b v0.2.1 https://github.com/cwida/duckdb.git duckdb-v0.2.1 && cd duckdb-v0.2.1 && make && cd ${TRAVIS_BUILD_DIR}; fi
8
+ - if [[ ! -d ${HOME}/duckdb-v0.2.2/build ]]; then cd ${HOME} && git clone -b v0.2.2 https://github.com/cwida/duckdb.git duckdb-v0.2.2 && cd duckdb-v0.2.2 && make && cd ${TRAVIS_BUILD_DIR}; fi
9
9
 
10
10
  env:
11
- - DUCKDB_VERSION=0.2.1
11
+ - DUCKDB_VERSION=0.2.2
12
12
  rvm:
13
13
  - 2.5.8
14
14
  - 2.6.6
@@ -1,5 +1,10 @@
1
1
  # ChangeLog
2
2
 
3
+ ## 0.0.10
4
+
5
+ - bump DuckDB to v0.2.2
6
+ - fix to build failure on MAC OS/X
7
+
3
8
  ## 0.0.9
4
9
 
5
10
  - bump DuckDB to v0.2.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- duckdb (0.0.9)
4
+ duckdb (0.0.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,7 @@
1
1
  #include "ruby-duckdb.h"
2
2
 
3
+ VALUE cDuckDBConnection;
4
+
3
5
  static void deallocate(void *ctx)
4
6
  {
5
7
  rubyDuckDBConnection *p = (rubyDuckDBConnection *)ctx;
@@ -7,8 +7,6 @@ struct _rubyDuckDBConnection {
7
7
 
8
8
  typedef struct _rubyDuckDBConnection rubyDuckDBConnection;
9
9
 
10
- VALUE cDuckDBConnection;
11
-
12
10
  void init_duckdb_connection(void);
13
11
  VALUE create_connection(VALUE oDuckDBDatabase);
14
12
 
@@ -1,5 +1,7 @@
1
1
  #include "ruby-duckdb.h"
2
2
 
3
+ VALUE cDuckDBDatabase;
4
+
3
5
  static void close_database(rubyDuckDB *p)
4
6
  {
5
7
  duckdb_close(&(p->db));
@@ -7,8 +7,6 @@ struct _rubyDuckDB {
7
7
 
8
8
  typedef struct _rubyDuckDB rubyDuckDB;
9
9
 
10
- VALUE cDuckDBDatabase;
11
-
12
10
  void init_duckdb_database(void);
13
11
 
14
12
  #endif
@@ -1,5 +1,7 @@
1
1
  #include "ruby-duckdb.h"
2
2
 
3
+ VALUE eDuckDBError;
4
+
3
5
  void init_duckdb_error(void)
4
6
  {
5
7
  eDuckDBError = rb_define_class_under(mDuckDB, "Error", rb_eStandardError);
@@ -1,8 +1,6 @@
1
1
  #ifndef RUBY_DUCKDB_ERROR_H
2
2
  #define RUBY_DUCKDB_ERROR_H
3
3
 
4
- VALUE eDuckDBError;
5
-
6
4
  void init_duckdb_error(void);
7
5
 
8
6
  #endif
@@ -81,7 +81,7 @@ static VALUE duckdb_prepared_statement_bind_boolean(VALUE self, VALUE vidx, VALU
81
81
  }
82
82
 
83
83
  if (duckdb_bind_boolean(ctx->prepared_statement, idx, (val == Qtrue)) == DuckDBError) {
84
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
84
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
85
85
  }
86
86
  return self;
87
87
  }
@@ -95,7 +95,7 @@ static VALUE duckdb_prepared_statement_bind_int16(VALUE self, VALUE vidx, VALUE
95
95
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
96
96
 
97
97
  if (duckdb_bind_int16(ctx->prepared_statement, idx, i16val) == DuckDBError) {
98
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
98
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
99
99
  }
100
100
  return self;
101
101
  }
@@ -104,12 +104,12 @@ static VALUE duckdb_prepared_statement_bind_int32(VALUE self, VALUE vidx, VALUE
104
104
  {
105
105
  rubyDuckDBPreparedStatement *ctx;
106
106
  idx_t idx = check_index(vidx);
107
- int32_t i32val = NUM2LONG(val);
107
+ int32_t i32val = NUM2INT(val);
108
108
 
109
109
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
110
110
 
111
111
  if (duckdb_bind_int32(ctx->prepared_statement, idx, i32val) == DuckDBError) {
112
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
112
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
113
113
  }
114
114
  return self;
115
115
  }
@@ -123,7 +123,7 @@ static VALUE duckdb_prepared_statement_bind_int64(VALUE self, VALUE vidx, VALUE
123
123
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
124
124
 
125
125
  if (duckdb_bind_int64(ctx->prepared_statement, idx, i64val) == DuckDBError) {
126
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
126
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
127
127
  }
128
128
  return self;
129
129
  }
@@ -137,7 +137,7 @@ static VALUE duckdb_prepared_statement_bind_float(VALUE self, VALUE vidx, VALUE
137
137
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
138
138
 
139
139
  if (duckdb_bind_float(ctx->prepared_statement, idx, (float)dbl) == DuckDBError) {
140
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
140
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
141
141
  }
142
142
  return self;
143
143
  }
@@ -151,7 +151,7 @@ static VALUE duckdb_prepared_statement_bind_double(VALUE self, VALUE vidx, VALUE
151
151
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
152
152
 
153
153
  if (duckdb_bind_double(ctx->prepared_statement, idx, dbl) == DuckDBError) {
154
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
154
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
155
155
  }
156
156
  return self;
157
157
  }
@@ -163,7 +163,7 @@ static VALUE duckdb_prepared_statement_bind_varchar(VALUE self, VALUE vidx, VALU
163
163
 
164
164
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
165
165
  if (duckdb_bind_varchar(ctx->prepared_statement, idx, StringValuePtr(str)) == DuckDBError) {
166
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
166
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
167
167
  }
168
168
  return self;
169
169
  }
@@ -175,7 +175,7 @@ static VALUE duckdb_prepared_statement_bind_null(VALUE self, VALUE vidx)
175
175
 
176
176
  Data_Get_Struct(self, rubyDuckDBPreparedStatement, ctx);
177
177
  if (duckdb_bind_null(ctx->prepared_statement, idx) == DuckDBError) {
178
- rb_raise(eDuckDBError, "fail to bind %ld parameter", idx);
178
+ rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
179
179
  }
180
180
  return self;
181
181
  }
@@ -10,5 +10,8 @@
10
10
  #include "./prepared_statement.h"
11
11
 
12
12
  extern VALUE mDuckDB;
13
+ extern VALUE cDuckDBDatabase;
14
+ extern VALUE cDuckDBConnection;
15
+ extern VALUE eDuckDBError;
13
16
 
14
17
  #endif
@@ -1,5 +1,5 @@
1
1
  module DuckDB
2
2
  # The version string of ruby-duckdb.
3
3
  # Currently, ruby-duckdb is NOT semantic versioning.
4
- VERSION = '0.0.9'.freeze
4
+ VERSION = '0.0.10'.freeze
5
5
  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.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Suketa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-12 00:00:00.000000000 Z
11
+ date: 2020-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.1.2
131
+ rubygems_version: 3.2.0.rc.2
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: This module is Ruby binding for DuckDB database engine.