-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement chdb v3.0.0 with pureGo instead of cGo #18
base: main
Are you sure you want to change the base?
Conversation
@auxten now all the tests pass correctly. I will change also the readme and the documentation to reflect the new changes |
|
||
<a name="Session"></a> | ||
## type [Session](<https://github.com/chdb-io/chdb-go/blob/main/chdb/session.go#L11-L14>) | ||
## type [Session](<https://github.com/agoncear-mwb/chdb-go/blob/main/chdb/session.go#L15-L20>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be "chdb-io"?
udfPath: "", | ||
expectedErrMsg: "", | ||
expectedResult: "123\n", | ||
}, | ||
// Session |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this test removed?
@@ -51,52 +50,3 @@ func TestSessionCleanup(t *testing.T) { | |||
t.Errorf("Session directory should be removed after Cleanup: %s", session.Path()) | |||
} | |||
} | |||
|
|||
// TestQuery tests the Query method of the session. | |||
func TestQuery(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why thest tests are removed?
} | ||
|
||
// RawQuery will execute the given clickouse query without using any session. | ||
func RawQuery(argc int, argv []string) (result ChdbResult, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old connection less query C API should not co-exist with the connection based ones.
This pr introduce the base of the removal of
cGo
in favor ofpureGo
.Whit this approach, we can reduce the overhead that cGo introduce in the library.