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 +4 -4
- data/.github/workflows/test_by_github.yml +14 -14
- data/.travis.yml +3 -3
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/ext/duckdb/connection.c +2 -0
- data/ext/duckdb/connection.h +0 -2
- data/ext/duckdb/database.c +2 -0
- data/ext/duckdb/database.h +0 -2
- data/ext/duckdb/error.c +2 -0
- data/ext/duckdb/error.h +0 -2
- data/ext/duckdb/prepared_statement.c +9 -9
- data/ext/duckdb/ruby-duckdb.h +3 -0
- data/lib/duckdb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c714dfd673f10a53f717920a00ce3a8d1bd60bb31eaa7c3d678427216ef8446d
|
4
|
+
data.tar.gz: 8f8df0fa662a682fc977429c25a6ee41885ca4df603edfcc25cc46f960b1256a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
23
|
-
id: duckdb-cache-
|
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.
|
27
|
-
key: ${{ runner.os }}-duckdb-
|
26
|
+
path: duckdb-v0.2.2
|
27
|
+
key: ${{ runner.os }}-duckdb-v0_2_2_001
|
28
28
|
restore-keys: |
|
29
|
-
${{ runner.os }}-duckdb-
|
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.
|
41
|
-
if: steps.duckdb-cache-
|
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.
|
44
|
-
cd duckdb-tmp-v0.2.
|
45
|
-
rm -rf duckdb-v0.2.
|
46
|
-
mkdir -p duckdb-v0.2.
|
47
|
-
cp -rip duckdb-tmp-v0.2.
|
48
|
-
cp -rip duckdb-tmp-v0.2.
|
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'
|
data/.travis.yml
CHANGED
@@ -2,13 +2,13 @@ language: ruby
|
|
2
2
|
cache:
|
3
3
|
bundler: true
|
4
4
|
directories:
|
5
|
-
- ${HOME}/duckdb-v0.2.
|
5
|
+
- ${HOME}/duckdb-v0.2.2
|
6
6
|
before_install:
|
7
7
|
- yes | gem update --system
|
8
|
-
- if [[ ! -d ${HOME}/duckdb-v0.2.
|
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.
|
11
|
+
- DUCKDB_VERSION=0.2.2
|
12
12
|
rvm:
|
13
13
|
- 2.5.8
|
14
14
|
- 2.6.6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/ext/duckdb/connection.c
CHANGED
data/ext/duckdb/connection.h
CHANGED
data/ext/duckdb/database.c
CHANGED
data/ext/duckdb/database.h
CHANGED
data/ext/duckdb/error.c
CHANGED
data/ext/duckdb/error.h
CHANGED
@@ -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 %
|
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 %
|
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 =
|
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 %
|
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 %
|
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 %
|
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 %
|
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 %
|
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 %
|
178
|
+
rb_raise(eDuckDBError, "fail to bind %llu parameter", (unsigned long long)idx);
|
179
179
|
}
|
180
180
|
return self;
|
181
181
|
}
|
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.0.
|
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-
|
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.
|
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.
|