Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB族のための組み込み軽量DB NeDB

pochi
February 03, 2016

MongoDB族のための組み込み軽量DB NeDB

pochi

February 03, 2016
Tweet

More Decks by pochi

Other Decks in Technology

Transcript

  1. Nedb = require 'nedb' db = new Nedb filename: './sample.db'

    autoload: true db.insert username: ‘hoge’ , (e,d)-> console.error e if e
  2. .VMUJQMF$PMMFDUJPO db = channels: new Nedb filename: "#{__dirname}/channels.db" autoload: true

    accounts: new Nedb filename: "#{__dirname}/accounts.db" autoload: true db.channels.find {}, (e, docs)->