Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96080f0

Browse filesBrowse files
committed
fix readme
1 parent 714d44c commit 96080f0
Copy full SHA for 96080f0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-8
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.