Skip to content

Commit

Permalink
Merge pull request #25 from abetomo/update_examples_test.js
Browse files Browse the repository at this point in the history
Fix 'example/test.js' with reference to README example code
  • Loading branch information
abetomo committed Sep 20, 2017
2 parents 2a5a6d4 + 870fd2e commit a3c7d66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/test.js
@@ -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)
})

0 comments on commit a3c7d66

Please sign in to comment.