Skip to content
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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

agoncear-mwb
Copy link
Contributor

This pr introduce the base of the removal of cGo in favor of pureGo.
Whit this approach, we can reduce the overhead that cGo introduce in the library.

@agoncear-mwb
Copy link
Contributor Author

@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>)
Copy link
Member

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
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants