Skip to content

Commit 34192d5

Browse files
committed
Fix typo in sessions.js to make it runnable
1 parent 8ecaa7d commit 34192d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sessions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
const addon = require(".");
22
var res;
33

4-
addon.Session(
4+
addon.chdb.Session(
55
"CREATE DATABASE IF NOT EXISTS db_xxx Engine=Atomic;",
66
"CSV",
77
"."
88
);
99

10-
addon.Session(
10+
addon.chdb.Session(
1111
"CREATE TABLE IF NOT EXISTS db_xxx.log_table_xxx (x String, y Int) ENGINE = Log;",
1212
"CSV",
1313
"."
1414
);
1515

16-
addon.Session(
16+
addon.chdb.Session(
1717
"INSERT INTO db_xxx.log_table_xxx VALUES ('a', 1), ('b', 3), ('c', 2), ('d', 5);",
1818
"CSV",
1919
"."
2020
);
2121

22-
res = addon.Session(
22+
res = addon.chdb.Session(
2323
"SELECT * FROM db_xxx.log_table_xxx LIMIT 4;",
2424
"Pretty",
2525
"."

0 commit comments

Comments
 (0)