Web TechnologiesElectron embeds Chromium and Node.js to enable web developers to create desktop applications. Cross PlatformCompatible with macOS, Windows, and Linux, Electron apps run on three platforms across all supported architectures.
サーバ側に関数を保存するには、db.system.jsという特別なコレクションを使います。 > db.system.js.save({_id:'wa', value:function (a,b){return a+b;}}); > exit bye (一度ログアウト) $ ~/bin/mongo > db.system.js.findOne({_id:"wa"}).value(2,3); 5 (このままだと使いにくいので変数に割り当てる > var wa = db.system.js.findOne({_id:'wa'}).value > wa(2,3); 5 関数waがサーバ側で永続的に存在することが確認できました。 なお、db.system.jsはコレクションなので、DBごとに別々に存在します。 参考 https://github.com/mongodb/mongo/blob/mast
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く