[Groonga-commit] nroonga/nroonga at 870fd2e [master] Fix 'example/test.js' with reference to README example code

Back to archive index

abetomo null+****@clear*****
Tue Sep 12 16:37:18 JST 2017


abetomo	2017-09-12 16:37:18 +0900 (Tue, 12 Sep 2017)

  New Revision: 870fd2e52eda762c7f7173e15a054d628d9678cb
  https://github.com/nroonga/nroonga/commit/870fd2e52eda762c7f7173e15a054d628d9678cb

  Merged a3c7d66: Merge pull request #25 from abetomo/update_examples_test.js

  Message:
    Fix 'example/test.js' with reference to README example code

  Modified files:
    examples/test.js

  Modified: examples/test.js (+6 -1)
===================================================================
--- examples/test.js    2017-09-09 00:14:38 +0900 (bae9073)
+++ examples/test.js    2017-09-12 16:37:18 +0900 (0d43b3c)
@@ -1,9 +1,14 @@
 'use strict'
 
 const nroonga = require('../lib/nroonga')
-
 const db = new nroonga.Database()
 
+// Synchronous
+console.log('// Synchronous')
+console.log(db.commandSync('status'))
+
+// Asynchronous
 db.command('status', (_, data) => {
+  console.log('// Asynchronous')
   console.log(data)
 })
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170912/e4c7e789/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index