ruby_snowflake_client 1.3.2 → 1.3.4.pre.debug
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/ext/ruby_snowflake.go +23 -4
- data/lib/ruby_snowflake_client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec8469f479dc0066998f11abb64e22696105eadcba0e7ad45598fbd5a59430b
|
4
|
+
data.tar.gz: 2c7c7153acd64e81a392a8d1a3425ea1d0e35987adec789272b7b96177557cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 702bd1dde511ebb08ee2826bb51768fa4a85b17d1cb5ac20859a956a6c199a3a6ae8498db71d81763f5077eeecf695595b3b119c48e5189438cd25588c4459f7
|
7
|
+
data.tar.gz: 258ef53f2da53957ffc92e61204cd73a65607cb8c9d8583c3467cae6a0f41f76dd2cb72c2c53d6fd6684872f351080718b151d0696c37e335693ff7b4b9bcd82
|
data/Gemfile.lock
CHANGED
data/ext/ruby_snowflake.go
CHANGED
@@ -24,11 +24,10 @@ var rbSnowflakeClientClass C.VALUE
|
|
24
24
|
var rbSnowflakeResultClass C.VALUE
|
25
25
|
var rbSnowflakeModule C.VALUE
|
26
26
|
|
27
|
-
var
|
28
|
-
var
|
29
|
-
var ERROR_IDENT = C.rb_intern(C.CString("@error"))
|
27
|
+
var RESULT_DURATION C.VALUE
|
28
|
+
var ERROR_IDENT C.VALUE
|
30
29
|
|
31
|
-
var objects = make(map[
|
30
|
+
var objects = make(map[any]bool)
|
32
31
|
var resultMap = make(map[C.VALUE]*SnowflakeResult)
|
33
32
|
var clientRef = make(map[C.VALUE]*SnowflakeClient)
|
34
33
|
|
@@ -43,28 +42,48 @@ func Inspect(self C.VALUE) C.VALUE {
|
|
43
42
|
|
44
43
|
//export Init_ruby_snowflake_client_ext
|
45
44
|
func Init_ruby_snowflake_client_ext() {
|
45
|
+
fmt.Println("Initializing consts")
|
46
|
+
RESULT_DURATION = C.rb_intern(C.CString("@query_duration"))
|
47
|
+
ERROR_IDENT = C.rb_intern(C.CString("@error"))
|
48
|
+
fmt.Println("[ruby-snowflake] Initializing module")
|
46
49
|
rbSnowflakeModule = C.rb_define_module(C.CString("Snowflake"))
|
50
|
+
fmt.Println("[ruby-snowflake] Initializing client class")
|
47
51
|
rbSnowflakeClientClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Client"), C.rb_cObject)
|
52
|
+
fmt.Println("[ruby-snowflake] Initializing result class")
|
48
53
|
rbSnowflakeResultClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Result"), C.rb_cObject)
|
49
54
|
|
55
|
+
fmt.Println("[ruby-snowflake] Setting up objects 1")
|
50
56
|
objects[rbSnowflakeResultClass] = true
|
57
|
+
fmt.Println("[ruby-snowflake] Setting up objects 2")
|
51
58
|
objects[rbSnowflakeClientClass] = true
|
59
|
+
fmt.Println("[ruby-snowflake] Setting up objects 3")
|
52
60
|
objects[rbSnowflakeModule] = true
|
61
|
+
fmt.Println("[ruby-snowflake] Setting up objects 4")
|
53
62
|
objects[RESULT_DURATION] = true
|
63
|
+
fmt.Println("[ruby-snowflake] Setting up objects 5")
|
54
64
|
objects[ERROR_IDENT] = true
|
65
|
+
fmt.Println("[ruby-snowflake] GCGUARD call 1")
|
55
66
|
C.RbGcGuard(RESULT_DURATION)
|
56
67
|
//C.RbGcGuard(RESULT_IDENTIFIER)
|
68
|
+
fmt.Println("[ruby-snowflake] GCGUARD call 2")
|
57
69
|
C.RbGcGuard(ERROR_IDENT)
|
58
70
|
|
71
|
+
fmt.Println("[ruby-snowflake] Define method 1")
|
59
72
|
C.rb_define_method(rbSnowflakeResultClass, C.CString("next_row"), (*[0]byte)(C.ObjNextRow), 0)
|
60
73
|
// `get_rows` is private as this can lead to SEGFAULT errors if not invoked
|
61
74
|
// with GC.disable due to undetermined issues caused by the Ruby GC.
|
75
|
+
fmt.Println("[ruby-snowflake] Define method 2")
|
62
76
|
C.rb_define_private_method(rbSnowflakeResultClass, C.CString("_get_rows"), (*[0]byte)(C.GetRows), 0)
|
77
|
+
fmt.Println("[ruby-snowflake] Define method 3")
|
63
78
|
C.rb_define_method(rbSnowflakeResultClass, C.CString("get_rows_no_enum"), (*[0]byte)(C.GetRowsNoEnum), 0)
|
64
79
|
|
80
|
+
fmt.Println("[ruby-snowflake] Define method 4")
|
65
81
|
C.rb_define_private_method(rbSnowflakeClientClass, C.CString("_connect"), (*[0]byte)(C.Connect), 7)
|
82
|
+
fmt.Println("[ruby-snowflake] Define method 5")
|
66
83
|
C.rb_define_method(rbSnowflakeClientClass, C.CString("inspect"), (*[0]byte)(C.Inspect), 0)
|
84
|
+
fmt.Println("[ruby-snowflake] Define method 6")
|
67
85
|
C.rb_define_method(rbSnowflakeClientClass, C.CString("to_s"), (*[0]byte)(C.Inspect), 0)
|
86
|
+
fmt.Println("[ruby-snowflake] Define method 7")
|
68
87
|
C.rb_define_method(rbSnowflakeClientClass, C.CString("_fetch"), (*[0]byte)(C.ObjFetch), 1)
|
69
88
|
|
70
89
|
if LOG_LEVEL > 0 {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_snowflake_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4.pre.debug
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rinsed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
Using the `Go` library for Snowflake to query and creating native Ruby objects,
|
@@ -2130,9 +2130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2130
2130
|
version: '0'
|
2131
2131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2132
2132
|
requirements:
|
2133
|
-
- - "
|
2133
|
+
- - ">"
|
2134
2134
|
- !ruby/object:Gem::Version
|
2135
|
-
version:
|
2135
|
+
version: 1.3.1
|
2136
2136
|
requirements: []
|
2137
2137
|
rubygems_version: 3.2.33
|
2138
2138
|
signing_key:
|