duckdb 0.10.2.0 → 0.10.3.0
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_on_macos.yml +10 -12
- data/.github/workflows/test_on_ubuntu.yml +4 -4
- data/.github/workflows/test_on_windows.yml +3 -3
- data/CHANGELOG.md +3 -0
- data/Dockerfile +1 -1
- data/Gemfile.lock +8 -8
- data/README.md +5 -1
- 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: 907d156955f2d1845a4a3646f7fe08148bd04cb1a7b01bb9ae7d4a959a74658f
|
4
|
+
data.tar.gz: b512a86a31e8d050306487bd321e2f54686e451b9609d74baa1319ac403d3250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c927abf5c9361ba7ad8a2e56e83b27ae4199a4c8a179864b9e6361f5842aa1f148a6c56a5eb1bd9254e93da9063b46bb9ec5b3c79aca54f3dedcebfe4170ff
|
7
|
+
data.tar.gz: b9974d9f85cbac42a9c71a8e1e12cedd74378e7d91907cb3b80919c744b72f596bc2c7f6450b49e249c92b587535a56d45ffc0eac3550ddf1f77df0c2e6fd466
|
@@ -15,11 +15,11 @@ jobs:
|
|
15
15
|
runs-on: macos-latest
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
ruby: ['3.0.
|
19
|
-
duckdb: ['0.9.2', '0.10.
|
18
|
+
ruby: ['3.0.7', '3.1.5', '3.2.4', '3.3.1', '3.4.0-preview1', 'head']
|
19
|
+
duckdb: ['0.9.2', '0.10.3']
|
20
20
|
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v4
|
23
23
|
|
24
24
|
- name: Set up Ruby
|
25
25
|
uses: ruby/setup-ruby@v1
|
@@ -28,7 +28,7 @@ jobs:
|
|
28
28
|
|
29
29
|
- name: duckdb cache
|
30
30
|
id: duckdb-cache
|
31
|
-
uses: actions/cache@
|
31
|
+
uses: actions/cache@v4
|
32
32
|
with:
|
33
33
|
path: duckdb-v${{ matrix.duckdb }}
|
34
34
|
key: ${{ runner.os }}-duckdb-v${{ matrix.duckdb }}
|
@@ -45,20 +45,18 @@ jobs:
|
|
45
45
|
cp -rip duckdb-tmp-v$DUCKDB_VERSION/build/release/src/*.dylib duckdb-v$DUCKDB_VERSION/build/release/src
|
46
46
|
cp -rip duckdb-tmp-v$DUCKDB_VERSION/src/include duckdb-v$DUCKDB_VERSION/src/
|
47
47
|
|
48
|
-
- name:
|
48
|
+
- name: Build with Ruby ${{ matrix.ruby }}
|
49
49
|
env:
|
50
50
|
DUCKDB_VERSION: ${{ matrix.duckdb }}
|
51
|
-
run: |
|
52
|
-
cp duckdb-v$DUCKDB_VERSION/src/include/*.h /usr/local/include
|
53
|
-
cp duckdb-v$DUCKDB_VERSION/build/release/src/*.dylib /usr/local/lib
|
54
|
-
|
55
|
-
- name: Build with Ruby ${{ matrix.ruby }}
|
56
51
|
run: |
|
57
52
|
bundle install --jobs 4 --retry 3
|
58
|
-
rake build
|
53
|
+
bundle exec rake build -- --with-duckdb-include=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/src/include --with-duckdb-lib=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/build/release/src/
|
59
54
|
|
60
|
-
- name:
|
55
|
+
- name: test with Ruby ${{ matrix.ruby }}
|
56
|
+
env:
|
57
|
+
DUCKDB_VERSION: ${{ matrix.duckdb }}
|
61
58
|
run: |
|
59
|
+
export DYLD_LIBRARY_PATH=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/build/release/src:${DYLD_LIBRARY_PATH}
|
62
60
|
env RUBYOPT=-W:deprecated rake test
|
63
61
|
|
64
62
|
post-test:
|
@@ -15,11 +15,11 @@ jobs:
|
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
ruby: ['3.0.
|
19
|
-
duckdb: ['0.9.2', '0.10.
|
18
|
+
ruby: ['3.0.7', '3.1.5', '3.2.4', '3.3.1', '3.4.0-preview1', 'head']
|
19
|
+
duckdb: ['0.9.2', '0.10.3']
|
20
20
|
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v4
|
23
23
|
|
24
24
|
- name: Set up Ruby
|
25
25
|
uses: ruby/setup-ruby@v1
|
@@ -28,7 +28,7 @@ jobs:
|
|
28
28
|
|
29
29
|
- name: duckdb cache
|
30
30
|
id: duckdb-cache
|
31
|
-
uses: actions/cache@
|
31
|
+
uses: actions/cache@v4
|
32
32
|
with:
|
33
33
|
path: duckdb-v${{ matrix.duckdb }}
|
34
34
|
key: ${{ runner.os }}-duckdb-v${{ matrix.duckdb }}
|
@@ -15,11 +15,11 @@ jobs:
|
|
15
15
|
runs-on: windows-latest
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
ruby: ['3.0.
|
19
|
-
duckdb: ['0.9.2', '0.10.
|
18
|
+
ruby: ['3.0.7', '3.1.5', '3.2.4', '3.3.1', 'ucrt', 'mingw', 'mswin', 'head']
|
19
|
+
duckdb: ['0.9.2', '0.10.3']
|
20
20
|
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v4
|
23
23
|
|
24
24
|
- name: Set up Ruby
|
25
25
|
uses: ruby/setup-ruby@v1
|
data/CHANGELOG.md
CHANGED
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
duckdb (0.10.
|
4
|
+
duckdb (0.10.3.0)
|
5
5
|
bigdecimal (>= 3.1.4)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
benchmark-ips (2.13.0)
|
11
|
-
bigdecimal (3.1.
|
11
|
+
bigdecimal (3.1.8)
|
12
12
|
mini_portile2 (2.8.6)
|
13
|
-
minitest (5.
|
14
|
-
nokogiri (1.16.
|
13
|
+
minitest (5.23.1)
|
14
|
+
nokogiri (1.16.5)
|
15
15
|
mini_portile2 (~> 2.8.2)
|
16
16
|
racc (~> 1.4)
|
17
|
-
nokogiri (1.16.
|
17
|
+
nokogiri (1.16.5-x86_64-linux)
|
18
18
|
racc (~> 1.4)
|
19
|
-
racc (1.
|
19
|
+
racc (1.8.0)
|
20
20
|
rake (13.2.1)
|
21
21
|
rake-compiler (1.2.7)
|
22
22
|
rake
|
23
|
-
ruby_memcheck (
|
23
|
+
ruby_memcheck (3.0.0)
|
24
24
|
nokogiri
|
25
25
|
stackprof (0.2.26)
|
26
26
|
|
@@ -39,4 +39,4 @@ DEPENDENCIES
|
|
39
39
|
stackprof
|
40
40
|
|
41
41
|
BUNDLED WITH
|
42
|
-
2.5.
|
42
|
+
2.5.9
|
data/README.md
CHANGED
@@ -133,7 +133,7 @@ Here is [the benchmark](./benchmark/async_query.rb).
|
|
133
133
|
|
134
134
|
### Using BLOB column
|
135
135
|
|
136
|
-
Use `DuckDB::Blob.new` or
|
136
|
+
Use `DuckDB::Blob.new` or `my_string.force_encoding(Encoding::BINARY)`.
|
137
137
|
|
138
138
|
```ruby
|
139
139
|
require 'duckdb'
|
@@ -166,6 +166,7 @@ def insert
|
|
166
166
|
DuckDB::Database.open do |db|
|
167
167
|
db.connect do |con|
|
168
168
|
con.query('CREATE TABLE users (id INTEGER, name VARCHAR(30))')
|
169
|
+
|
169
170
|
10000.times do
|
170
171
|
con.query("INSERT into users VALUES(1, 'Alice')")
|
171
172
|
end
|
@@ -178,6 +179,7 @@ def prepare
|
|
178
179
|
db.connect do |con|
|
179
180
|
con.query('CREATE TABLE users (id INTEGER, name VARCHAR(30))')
|
180
181
|
stmt = con.prepared_statement('INSERT INTO users VALUES($1, $2)')
|
182
|
+
|
181
183
|
10000.times do
|
182
184
|
stmt.bind(1, 1)
|
183
185
|
stmt.bind(2, 'Alice')
|
@@ -192,12 +194,14 @@ def append
|
|
192
194
|
db.connect do |con|
|
193
195
|
con.query('CREATE TABLE users (id INTEGER, name VARCHAR(30))')
|
194
196
|
appender = con.appender('users')
|
197
|
+
|
195
198
|
10000.times do
|
196
199
|
appender.begin_row
|
197
200
|
appender.append(1)
|
198
201
|
appender.append('Alice')
|
199
202
|
appender.end_row
|
200
203
|
end
|
204
|
+
|
201
205
|
appender.flush
|
202
206
|
end
|
203
207
|
end
|
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.
|
4
|
+
version: 0.10.3.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-
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
|
-
rubygems_version: 3.5.
|
182
|
+
rubygems_version: 3.5.9
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: This module is Ruby binding for DuckDB database engine.
|