Skip to content

Commit 96080f0

Browse files
committed
fix readme
1 parent 714d44c commit 96080f0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const db = new SQL.Database();
4040

4141

4242
// Execute a single SQL string that contains multiple statements
43-
sqlstr = "CREATE TABLE hello (a int, b char); \
43+
let sqlstr = "CREATE TABLE hello (a int, b char); \
4444
INSERT INTO hello VALUES (0, 'hello'); \
4545
INSERT INTO hello VALUES (1, 'world');";
4646
db.run(sqlstr); // Run the query without returning anything
@@ -60,13 +60,6 @@ stmt.free();
6060
// You can not use your statement anymore once it has been freed.
6161
// But not freeing your statements causes memory leaks. You don't want that.
6262

63-
// Execute a single SQL string that contains multiple statements
64-
let sqlstr =
65-
"CREATE TABLE hello (a int, b char); \
66-
INSERT INTO hello VALUES (0, 'hello'); \
67-
INSERT INTO hello VALUES (1, 'world');";
68-
db.run(sqlstr); // Run the query without returning anything
69-
7063
const res = db.exec("SELECT * FROM hello");
7164
/*
7265
[

0 commit comments

Comments
 (0)