Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit bc495ae

Browse files
authored
feat: bump to version 0.1.2 (#24)
* feat: bump to version 0.1.2 * chore: fix some bugs in example read-write * chore: fix wrong endpoint in read-write example * chore: fix variable name drop_table_sql
1 parent 6b4484d commit bc495ae

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ceresdb-client-py"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["CeresDB Authors <ceresdbservice@gmail.com>"]
55
edition = "2021"
66

examples/read_write.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77

88
def create_table(ctx):
9-
create_table_sql = 'CREATE TABLE demo ( \
9+
create_table_sql = 'CREATE TABLE IF NOT EXISTS demo ( \
1010
name string TAG, \
1111
value double, \
1212
t timestamp NOT NULL, \
1313
TIMESTAMP KEY(t)) ENGINE=Analytic with (enable_ttl=false)'
1414

15-
req = QueryRequest('demo', create_table_sql)
15+
req = QueryRequest(['demo'], create_table_sql)
1616
_resp = sync_query(client, ctx, req)
1717
print("Create table success!")
1818

1919

2020
def drop_table(ctx):
21-
create_table_sql = 'DROP TABLE demo'
21+
drop_table_sql = 'DROP TABLE demo'
2222

23-
req = QueryRequest('demo', create_table_sql)
23+
req = QueryRequest(['demo'], drop_table_sql)
2424
_resp = sync_query(client, ctx, req)
2525
print("Drop table success!")
2626

@@ -59,7 +59,7 @@ def sync_write(cli, ctx, req):
5959

6060

6161
def process_write_resp(resp):
62-
print("success:{}, failed:{}, metrics:{}".format(resp.get_success(), resp.get_failed(), resp.get_metrics()))
62+
print("success:{}, failed:{}".format(resp.get_success(), resp.get_failed()))
6363

6464

6565
if __name__ == "__main__":
@@ -85,7 +85,7 @@ def process_write_resp(resp):
8585
print("------------------------------------------------------------------")
8686

8787
print("### read:")
88-
req = QueryRequest('demo', 'select * from demo')
88+
req = QueryRequest(['demo'], 'select * from demo')
8989
resp = sync_query(client, ctx, req)
9090
process_query_resp(resp)
9191
print("------------------------------------------------------------------")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ceresdb-client"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "The python client for ceresdb."
55
readme = "README.md"
66
requires-python = ">=3.7"

0 commit comments

Comments
 (0)