-
-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
feature requestFeature Request or ProposalFeature Request or Proposalgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
from chdb import session as chs
sess = chs.Session()
sess.query("CREATE DATABASE IF NOT EXISTS db_xxx ENGINE = Atomic;")
sess.query("CREATE TABLE IF NOT EXISTS db_xxx.log_table_xxx (x String, y Int) ENGINE = MergeTree ORDER BY x;")
sess.query("USE db_xxx;") # update current db to db_xxx
sess.query("INSERT INTO log_table_xxx (x, y) SELECT toString(rand()), rand() FROM numbers(1000000);")
sess.query("SELECT count(*) FROM log_table_xxx;")
See also: #82
Metadata
Metadata
Assignees
Labels
feature requestFeature Request or ProposalFeature Request or Proposalgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed