Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MongoDB族のための組み込み軽量DB NeDB
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
pochi
February 03, 2016
Technology
1.5k
0
Share
MongoDB族のための組み込み軽量DB NeDB
pochi
February 03, 2016
More Decks by pochi
See All by pochi
React Nativeで作ったアプリでRedux-Sagaを使ったので,その話 / TOM Internal Developer Session #7
pchw
0
2.2k
Expoで開発してアプリを公開して得られた知見 / RNM6
pchw
3
1.9k
Firebaseでラクラクリアルタイムアプリ
pchw
0
1.4k
月刊ライトニングトーク2014年8月号: MEAN 祭り資料
pchw
0
4.3k
Synth - 東京Node学園2014
pchw
0
4.4k
RubyMotion 1.15で追加されたtest周りの話
pchw
1
3.2k
Other Decks in Technology
See All in Technology
Generative UI × A2UI で AI エージェントを作った話 AI-DLC も使ってみた!
kmiya84377
1
300
GoとSIMDとWasmの今。
askua
2
450
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
120
Mastering Ruby Box
tagomoris
3
130
ChatworkとBPaaS 異なる特性で学んだAI機能開発の ベストプラクティス
kubell_hr
2
1.3k
インフラが苦手でも大丈夫! 紙芝居 Kubernetes -WWGT 10周年編-
aoi1
1
320
Gradle×GitHub_ActionsでCI時間を約50%短縮 ジョブ分割の設計と落とし穴 / Cutting CI Time by ~50% with Gradle and GitHub Actions: Job-Splitting Design and Pitfalls
takatty
0
580
サイバーセキュリティ概論 / Introduction to Cybersecurity
ks91
PRO
0
110
テストコードのないプロジェクトにテストを根付かせる
tttol
1
240
Databricks における 生成AIガバナンスの実践
taka_aki
1
140
電子辞書Brainをネットに繋げてみた(自力編)
raspython3
0
410
AI Adaptable なテストを整える工夫 / Ways to Make Your Tests AI-Adaptable
bitkey
PRO
2
200
Featured
See All Featured
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
570
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Six Lessons from altMBA
skipperchong
29
4.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Technical Leadership for Architectural Decision Making
baasie
3
390
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.6k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Transcript
.POHP%#ͷͨΊͷ ΈࠐΈܰྔ%# /F%# !QDIX
None
None
None
/F%#
/F%# HJUIVCDPNMPVJTDIBUSJPUOFEC &NCFEEFEQFSTJTUFOUPSJONFNPSZEBUBCBTF GPS/PEFKT OXKT &MFDUSPOBOECSPXTFST +BWB4DSJQU OPCJOBSZEFQFOEFODZ *UJTBTVCTFUPG.POHP%#T"1*
UIFNPTU VTFEPQFSBUJPOT
$ npm install nedb --save
Nedb = require 'nedb' db = new Nedb filename: './sample.db'
autoload: true db.insert username: ‘hoge’ , (e,d)-> console.error e if e
$ more sample.db { “username":"hoge", “_id":"Jsl0xWxa381Rbf78" }
'VODUJPOT pOEpOE0OFDPVOUJOTFSUVQEBUFSFNPWF NBUDIPQFSBUPSTQSPKFDUJPOTPSUMJNJUTLJQ JOEFYFTTVCEPDVNFOU
%JGGFSFODF /PTDIFNB /P"HHSFHBUJPO $BOOPUOFX%PDVNFOU IBWFUPVTFJOTFSUVQEBUF TBWFVOEFpOFEQSPQFSUZOPDIBOHFT
.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)->
͜͏͍͏͜ͱʹ͑Δʁ
ςετ༻μϛʔ%#
.POHP%#ͷษڧ
܅Կʹ͏ʁ