ruby_snowflake_client 1.3.2 → 1.3.4.pre.debug

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 358ad08a71505a66ef930be5572c3ebf38d320c39313d8079a3aad92dcf24f3f
4
- data.tar.gz: e11b8a0f04f61c3f099adf22bc433744483640f1d8711ddbe263a1b4d2322731
3
+ metadata.gz: bec8469f479dc0066998f11abb64e22696105eadcba0e7ad45598fbd5a59430b
4
+ data.tar.gz: 2c7c7153acd64e81a392a8d1a3425ea1d0e35987adec789272b7b96177557cf4
5
5
  SHA512:
6
- metadata.gz: 867583ebfc16d1b5abe212e287db28ff0c317a09b55053d109ef51dcac1ba3898d716ec675a4d82f1ecc56cbaf4caddfc1d067c3bb55321a08a990e18bc10c71
7
- data.tar.gz: d3833033b1579e2f52dbb1b037c5ded05162c51392f7dd4fa986d12d5ab5d310e676e430909f2e94444ff777429a8aa4af1a892246b5dfee64ba6a83ac997127
6
+ metadata.gz: 702bd1dde511ebb08ee2826bb51768fa4a85b17d1cb5ac20859a956a6c199a3a6ae8498db71d81763f5077eeecf695595b3b119c48e5189438cd25588c4459f7
7
+ data.tar.gz: 258ef53f2da53957ffc92e61204cd73a65607cb8c9d8583c3467cae6a0f41f76dd2cb72c2c53d6fd6684872f351080718b151d0696c37e335693ff7b4b9bcd82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_snowflake_client (1.3.2)
4
+ ruby_snowflake_client (1.3.4.pre.debug)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,11 +24,10 @@ var rbSnowflakeClientClass C.VALUE
24
24
  var rbSnowflakeResultClass C.VALUE
25
25
  var rbSnowflakeModule C.VALUE
26
26
 
27
- var RESULT_IDENTIFIER = C.rb_intern(C.CString("rows"))
28
- var RESULT_DURATION = C.rb_intern(C.CString("@query_duration"))
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[interface{}]bool)
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 {
@@ -1,3 +1,3 @@
1
1
  module RubySnowflakeClient
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.4-debug'
3
3
  end
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.2
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-07-26 00:00:00.000000000 Z
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: '0'
2135
+ version: 1.3.1
2136
2136
  requirements: []
2137
2137
  rubygems_version: 3.2.33
2138
2138
  signing_key: