Skip to content

Commit 7265f27

Browse files
author
Snowflake107
committed
readme
1 parent d753e88 commit 7265f27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ db.prepare(`CREATE TABLE IF NOT EXISTS "DEMO" ("key" TEXT, "value" TEXT)`).run()
2727
db.prepare(`INSERT INTO "DEMO" ("key","value") VALUES ("test_key", "test_value")`).run();
2828

2929
// fetching data
30-
db.prepare(`SELECT * FROM "DEMO"`).run();
30+
db.prepare(`SELECT * FROM "DEMO"`).run().parse();
3131

3232
// fetching data in limit
33-
db.prepare(`SELECT * FROM "DEMO" LIMIT 3`).run(); // returns 3 items if available
33+
db.prepare(`SELECT * FROM "DEMO" LIMIT 3`).run().parse(); // returns 3 items if available
3434

3535
// update existing data
36-
db.prepare(`UPDATE "DEMO" SET "json" = "test data" WHERE "key" = "test_key"`).run()
36+
db.prepare(`UPDATE "DEMO" SET "value" = "test data" WHERE "key" = "test_key"`).run()
3737

3838
// delete specific item
3939
db.prepare(`DELETE FROM "DEMO" WHERE "key" = "test_key"`).run();

0 commit comments

Comments
 (0)