duckdb 0.10.1.1 → 0.10.3.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: 3d937467c3c4f50946242d38224cfd0954d17a2a5ade0a3a5b72d7611a482e45
4
- data.tar.gz: 69ca3178c0aaeab610ee663e0a1f47f3b96f685db84f4f4816be0d142a7276c4
3
+ metadata.gz: 907d156955f2d1845a4a3646f7fe08148bd04cb1a7b01bb9ae7d4a959a74658f
4
+ data.tar.gz: b512a86a31e8d050306487bd321e2f54686e451b9609d74baa1319ac403d3250
5
5
  SHA512:
6
- metadata.gz: 39735bf906776ac331c4eb3daef1091dda9d70668216825b9eab4aafd82f7c667045677aba13f8438d7ff13213b3ee9c8dba8e806e20c9eec377a67ab4c1e741
7
- data.tar.gz: b53af70bbeeea1eea3cf5f3c161faea38249dacbc1ee26b13416540818edac64632f07a3af67cd9c79457c2c5aad85abb4183f878c97c5cbdd48b87adbf0e5ed
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.6', '3.1.4', '3.2.3', '3.3.0', 'head']
19
- duckdb: ['0.9.2', '0.10.0', '0.10.1']
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@v3
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@v3
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: prepare duckdb header and libraries
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: run test with Ruby ${{ matrix.ruby }}
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.6', '3.1.4', '3.2.3', '3.3.0', 'head']
19
- duckdb: ['0.9.2', '0.10.0', '0.10.1']
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@v3
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@v3
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.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']
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@v3
22
+ - uses: actions/checkout@v4
23
23
 
24
24
  - name: Set up Ruby
25
25
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ # 0.10.3.0 - 2024-05-25
8
+ - bump to duckdb v0.10.3.
9
+
10
+ # 0.10.2.0 - 2024-04-20
11
+ - remove version from docker-compose.yml.
12
+ - bump to duckdb v0.10.2.
13
+
7
14
  # 0.10.1.1 - 2024-03-31
8
15
  - fix error using binding with name (issue #612).
9
16
  Thanks to pere73.
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.3
5
5
 
6
6
  RUN apt update -qq && \
7
7
  apt install -y build-essential curl git wget
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- duckdb (0.10.1.1)
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.7)
12
- mini_portile2 (2.8.5)
13
- minitest (5.22.3)
14
- nokogiri (1.16.3)
11
+ bigdecimal (3.1.8)
12
+ mini_portile2 (2.8.6)
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.3-x86_64-linux)
17
+ nokogiri (1.16.5-x86_64-linux)
18
18
  racc (~> 1.4)
19
- racc (1.7.3)
20
- rake (13.1.0)
19
+ racc (1.8.0)
20
+ rake (13.2.1)
21
21
  rake-compiler (1.2.7)
22
22
  rake
23
- ruby_memcheck (2.3.0)
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.3
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 use string#force_encoding(Encoding::BINARY)
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/docker-compose.yml CHANGED
@@ -1,4 +1,3 @@
1
- version: '3'
2
1
  services:
3
2
  ubuntu:
4
3
  build:
@@ -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.1'
6
+ VERSION = '0.10.3.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.1
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-03-31 00:00:00.000000000 Z
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.3
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.