RunKit + npm: node-objects-database

node v8.17.0
version: master
endpointsharetweet
var objectsDb = require("node-objects-database"); objectsDb.start("database_file_name"); (async function() { await objectsDb.set("productId", {productId: "key_5678", name: "A good product", description: "This is a good product."}); var product = await objectsDb.get("productId", "key_5678"); console.log(product); await objectsDb.insert("productId", {productId: "key_5679", name: "Another good product", description: "This is another good product."}); var products = await objectsDb.find(); console.log(products); })();
Created from: https://npm.runkit.com/node-objects-database
Loading…

no comments

    sign in to comment