-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add query_post, get_test_default_client method
Signed-off-by: ZhangJian He <[email protected]> Co-authored-by: heiliuchao <[email protected]>
- Loading branch information
ZhangJian He
committed
Mar 27, 2024
1 parent
ebd8224
commit 7e67122
Showing
4 changed files
with
40 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import datetime | ||
|
||
from opengemini_client import client_impl | ||
from opengemini_client import models | ||
|
||
|
||
def get_test_default_client(): | ||
cfg = models.Config(address=[models.Address(host='127.0.0.1', port=8086)], | ||
auth_config=models.AuthConfig(auth_type=models.AuthType(0)), | ||
batch_config=models.BatchConfig(batch_size=10, batch_interval=10), | ||
timeout=datetime.timedelta(seconds=10), | ||
connection_timeout=datetime.timedelta(seconds=10), | ||
gzip_enabled=False, tls_enabled=False | ||
) | ||
cli = client_impl.OpenGeminiDBClient(cfg) | ||
return cli |