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

feat: support batch points write method #26

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

Chenxulin97
Copy link
Member

No description provided.

@Chenxulin97 Chenxulin97 force-pushed the write branch 8 times, most recently from d28267e to 172850f Compare December 5, 2023 12:18
@@ -17,7 +17,8 @@ type Client interface {
// Ping check that status of cluster.
Ping(idx int) error
Query(query Query) (*QueryResult, error)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this blank line

@Chenxulin97 Chenxulin97 force-pushed the write branch 2 times, most recently from e518943 to 3890e3f Compare December 5, 2023 13:00
}

defer resp.Body.Close()
if resp.StatusCode != 204 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if resp.StatusCode != 204 {
if resp.StatusCode != http.StatusNoContent {

c := testDefaultClient(t)

// create a test database with rand suffix
var database = randomDatabaseName()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var database = randomDatabaseName()
database := randomDatabaseName()

@hezhangjian hezhangjian merged commit ab1de2e into openGemini:main Dec 5, 2023
7 checks passed
@Chenxulin97 Chenxulin97 deleted the write branch December 6, 2023 02:27
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