回答編集履歴
1
type
test
CHANGED
@@ -16,13 +16,13 @@
|
|
16
16
|
|
17
17
|
const db = new sqlite3.Database('db.sqlite3');
|
18
18
|
|
19
|
-
const
|
19
|
+
const db_all = thunkify(db.all.bind(db));
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
const friends = yield
|
23
|
+
const friends = yield db_all("SELECT * FROM friend");
|
24
24
|
|
25
|
-
const messages= yield
|
25
|
+
const messages= yield db_all("SELECT * FROM message");
|
26
26
|
|
27
27
|
|
28
28
|
|