chdb-ruby 0.2.0.rc.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/dependencies.yml +1 -1
- data/ext/chdb/chdb_handle.c +4 -1
- data/ext/chdb/exception.c +4 -2
- data/ext/chdb/extconf.rb +1 -1
- data/lib/chdb/version.rb +1 -1
- metadata +5 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 679893b02b8167b00cef30c5548f85cb7eadcd60d30d699b8365d8c67f3026ee
|
|
4
|
+
data.tar.gz: 7cba8725c25b47438e8c3ff15e28e57973583c382f5f7a31c65d1fea979ace81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd1b79158199aed6a3c1292f0445aba3a9a9042a9ba736947849bb5cc4ac36e7d871138bfbbc8945146ab6859e837559e9bcf6c6c7de8626274245c128170b5f
|
|
7
|
+
data.tar.gz: d429ce04723adf1d3ff35e8a4b08e9c683b76ad2c1878bd214f83ea9184f0e4d8466ef308675fed10543d1484bc7132d7fc0d3aa1d248be59ed243d9c7a7c2bf
|
data/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<a href="https://chdb.io" target="_blank">
|
|
2
|
-
<img src="
|
|
2
|
+
<img src="img/chdb-ruby.png" width=130 />
|
|
3
3
|
</a>
|
|
4
4
|
|
|
5
|
-
[](https://github.com/chdb-io/chdb-ruby/actions/workflows/chdb.yml)
|
|
6
5
|
|
|
7
|
-
# Ruby
|
|
6
|
+
# Ruby binding for chDB
|
|
8
7
|
|
|
9
8
|
## Overview
|
|
10
9
|
|
data/dependencies.yml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
chdb:
|
|
2
|
-
version: "
|
|
2
|
+
version: "26.11.0-rc.2"
|
data/ext/chdb/chdb_handle.c
CHANGED
|
@@ -87,5 +87,8 @@ void init_chdb_handle()
|
|
|
87
87
|
(void*)chdb_destroy_result_ptr);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
// Keep libchdb loaded until the process exits. Ruby runs end procs before the
|
|
91
|
+
// GC finalizers of the remaining Connection/LocalResult/StreamingResult objects,
|
|
92
|
+
// and those finalizers call back into libchdb, so unloading it here would leave
|
|
93
|
+
// them jumping into unmapped code.
|
|
91
94
|
}
|
data/ext/chdb/exception.c
CHANGED
|
@@ -5,9 +5,11 @@ VALUE cChDBError;
|
|
|
5
5
|
void init_exception()
|
|
6
6
|
{
|
|
7
7
|
VALUE mChDB = rb_define_module("ChDB");
|
|
8
|
-
|
|
8
|
+
// Look up ChDB::Exception only in ChDB itself: rb_const_defined/rb_const_get
|
|
9
|
+
// also search Object for a module and would return Ruby's top-level Exception.
|
|
10
|
+
if (rb_const_defined_at(mChDB, rb_intern("Exception")))
|
|
9
11
|
{
|
|
10
|
-
cChDBError =
|
|
12
|
+
cChDBError = rb_const_get_at(mChDB, rb_intern("Exception"));
|
|
11
13
|
}
|
|
12
14
|
else
|
|
13
15
|
{
|
data/ext/chdb/extconf.rb
CHANGED
|
@@ -128,7 +128,7 @@ module ChDB
|
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
def build_download_url(version, file_name)
|
|
131
|
-
"https://github.com/chdb-io/chdb/releases/download/v#{version}/#{file_name}"
|
|
131
|
+
"https://github.com/chdb-io/chdb-core/releases/download/v#{version}/#{file_name}"
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
def download_tarball(url, download_dir, file_name)
|
data/lib/chdb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chdb-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.0
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xiaozhe Yu
|
|
8
8
|
- Auxten Wang
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: csv
|
|
@@ -28,7 +27,6 @@ dependencies:
|
|
|
28
27
|
description: |
|
|
29
28
|
Ruby library to interface with the chDB database engine (https://clickhouse.com/docs/chdb). Precompiled
|
|
30
29
|
binaries are available for common platforms for recent versions of Ruby.
|
|
31
|
-
email:
|
|
32
30
|
executables: []
|
|
33
31
|
extensions:
|
|
34
32
|
- ext/chdb/extconf.rb
|
|
@@ -75,7 +73,6 @@ metadata:
|
|
|
75
73
|
changelog_uri: https://github.com/chdb-io/chdb-ruby/blob/main/CHANGELOG.md
|
|
76
74
|
source_code_uri: https://github.com/chdb-io/chdb-ruby
|
|
77
75
|
rubygems_mfa_required: 'true'
|
|
78
|
-
post_install_message:
|
|
79
76
|
rdoc_options:
|
|
80
77
|
- "--main"
|
|
81
78
|
- README.md
|
|
@@ -88,12 +85,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
88
85
|
version: '3.1'
|
|
89
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
87
|
requirements:
|
|
91
|
-
- - "
|
|
88
|
+
- - ">="
|
|
92
89
|
- !ruby/object:Gem::Version
|
|
93
|
-
version:
|
|
90
|
+
version: '0'
|
|
94
91
|
requirements: []
|
|
95
|
-
rubygems_version: 3.
|
|
96
|
-
signing_key:
|
|
92
|
+
rubygems_version: 3.6.9
|
|
97
93
|
specification_version: 4
|
|
98
94
|
summary: Ruby library to interface with the chDB database engine (https://clickhouse.com/docs/chdb).
|
|
99
95
|
test_files: []
|