forked from timescale/tsbs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modify tsbs to support using in ceresdb integration test (#6)
* support creating partitioned table, you can make by setting `--parition-keys xxx`. * support setting access mode of ceresdb client(--access-mode direct/proxy). * support output query responses to defined file. * remove useless prints, and refactor create sql's building. * fix naming style. * fix naming style again... * Extract client's build to a function for eliminating duplicated codes. * make queries result printing more pretty. * Support setting update mode. * support setting partition num.
- Loading branch information
Showing
6 changed files
with
116 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package ceresdb | ||
|
||
import "github.com/CeresDB/ceresdb-client-go/ceresdb" | ||
|
||
func NewClient(endpoint string, accessMode string, opts ...ceresdb.Option) (ceresdb.Client, error) { | ||
mode := ceresdb.Direct | ||
if accessMode == "proxy" { | ||
mode = ceresdb.Proxy | ||
} | ||
return ceresdb.NewClient(endpoint, mode, opts...) | ||
} |