Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ext/ruby_snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ var rbSnowflakeClientClass C.VALUE
var rbSnowflakeResultClass C.VALUE
var rbSnowflakeModule C.VALUE

var RESULT_IDENTIFIER = C.rb_intern(C.CString("rows"))
var RESULT_DURATION = C.rb_intern(C.CString("@query_duration"))
var ERROR_IDENT = C.rb_intern(C.CString("@error"))
var RESULT_DURATION C.VALUE
var ERROR_IDENT C.VALUE

var objects = make(map[interface{}]bool)
var objects = make(map[any]bool)
var resultMap = make(map[C.VALUE]*SnowflakeResult)
var clientRef = make(map[C.VALUE]*SnowflakeClient)

Expand All @@ -43,6 +42,9 @@ func Inspect(self C.VALUE) C.VALUE {

//export Init_ruby_snowflake_client_ext
func Init_ruby_snowflake_client_ext() {
fmt.Println("Initializing consts")
RESULT_DURATION = C.rb_intern(C.CString("@query_duration"))
ERROR_IDENT = C.rb_intern(C.CString("@error"))
fmt.Println("[ruby-snowflake] Initializing module")
rbSnowflakeModule = C.rb_define_module(C.CString("Snowflake"))
fmt.Println("[ruby-snowflake] Initializing client class")
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_snowflake_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubySnowflakeClient
VERSION = '1.3.3-debug'
VERSION = '1.3.4-debug'
end