Download diskdb
Author: G | 2025-04-24
Download DiskDB latest version for Windows free to try. DiskDB latest update: Aug Download DiskDB latest version for Windows free to try. DiskDB latest update: Aug
diskdb/web: The diskdb frontend - GitHub
A Lightweight Disk based JSON Database with a MongoDB like API for Node.You will never know that you are interacting with a File SystemContentsGetting StartedDocumentationConnectLoad CollectionsWrite/SaveReadUpdateRemoveCountExamplesPerformanceContributingRelease HistoryGetting StartedInstall the module locally :var db = require('diskdb');db = db.connect('/path/to/db-folder', ['collection-name']);// you can access the traditional JSON DB methods hereDocumentationConnect to DBdb.connect(pathToFolder, ['filename']);Filename will be the name of the JSON file. You can omit the extension, diskDB will take care of it for you.var db = require('diskdb');db = db.connect('/examples/db', ['articles']);// or simplydb.connect('/examples/db', ['articles']);This will check for a directory at given path, if it does not exits, diskDB will throw an error and exit.If the directory exists but the file/collection does not exist, diskDB will create it for you.Note : If you have manually created a JSON file, please make sure it contains a valid JSON array, otherwise diskDBwill return an empty array.Else it will throw an error likeundefined:0^SyntaxError: Unexpected end of inputLoad CollectionsAlternatively you can also load collections likevar db = require('diskdb');// thisdb = db.connect('/examples/db');db.loadCollections(['articles']);//ordb.connect('/examples/db');db.loadCollections(['articles']);//ordb.connect('/examples/db') .loadCollections(['articles']);//ordb.connect('/examples/db', ['articles']);Load Multiple Collectionsvar db = require('diskdb');db.connect('/examples/db', ['articles','comments','users']);Write/Save to Collectiondb.collectionName.save(object);Once you have loaded a collection, you can access the collection's methods using the dot notation likedb.[collectionName].[methodname]To save the data, you can usevar db = require('diskdb');db.connect('db', ['articles']);var article = { title : "diskDB rocks", published : "today", rating : "5 stars"}db.articles.save(article);// ordb.articles.save([article]);The saved data will be[ { "title": "diskDB rocks", "published": "today", "rating": "5 stars", "_id": "0f6047c6c69149f0be0c8f5943be91be" }]You can also save multiple objects at once likevar db = require('diskdb');db.connect('db', ['articles']);var article1 = { title : 'diskDB rocks', published : 'today', rating : '5 stars'}var article2 = { title : 'diskDB rocks', published : 'yesterday', rating : '5 stars'}var article3 = { title : 'diskDB rocks', published : 'today', rating : '4 stars'}db.articles.save([article1, article2, article3]);And this will return the inserted objects[ { title: 'diskDB rocks', published: 'today', rating: '4 stars', _id: 'b1cdbb3525b84e8c822fc78896d0ca7b' }, { title: 'diskDB rocks', published: 'yesterday', rating: '5 stars', _id: '42997c62e1714e9f9d88bf3b87901f3b' }, { title: 'diskDB rocks', published: 'today', rating: '5 stars', _id: '4ca1c1597ddc4020bc41b4418e7a568e' } ]Read from CollectionThere are 2 methods available for reading the JSON collectiondb.collectionName.find(query)db.collectionName.findOne(query)db.collectionName.find()var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find();This will return all the records[{ title: 'diskDB Download DiskDB latest version for Windows free to try. DiskDB latest update: Aug Download DiskDB latest version for Windows free to try. DiskDB latest update: Aug Rocks', published: 'today', rating: '5 stars', _id: '0f6047c6c69149f0be0c8f5943be91be'}]You can also query with a criteria likevar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find({rating : "5 stars"});This will return all the articles which have a rating of 5.Find can take multiple criteriavar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find({rating : "5 stars", published: "yesterday"});This will return all the articles with a rating of 5, published yesterday.Nested JSON :var articleComments = { title: 'diskDB rocks', published: '2 days ago', comments: [{ name: 'a user', comment: 'this is cool', rating: 2 }, { name: 'b user', comment: 'this is ratchet', rating: 3 }, { name: 'c user', comment: 'this is awesome', rating: 2 }]}var savedArticle = db.articles.save([articleComments);foundArticles = db.articles.find({rating : 2});Since diskDB is mostly for light weight data storage, avoid nested structures and huge datasets.db.collectionName.findOne(query)var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.findOne();If you do not pass a query, diskDB will return the first article in the collection. If you pass a query, it will return first article in the filtered data.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.findOne({_id: '0f6047c6c69149f0be0c8f5943be91be'});Update Collectiondb.collectionName.update(query, data, options);You can also update one or many objects in the collectionoptions = { multi: false, // update multiple - default false upsert: false // if object is not found, add it (update-insert) - default false}Usagevar db = require('diskdb');db.connect('/examples/db', ['articles']);var query = { title : 'diskDB rocks'};var dataToBeUpdate = { title : 'diskDB rocks again!',};var options = { multi: false, upsert: false};var updated = db.articles.update(query, dataToBeUpdate, options);console.log(updated); // { updated: 1, inserted: 0 }Remove Collectiondb.collectionName.remove(query, multi);You can remove the entire collection (including the file) or you can remove the matched objects by passing in a query. When you pass a query, you can either delete all the matched objects or only the first one by passing multi as false. The default value of multi is true.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"});var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"}, true); // remove all matched. Default - multi = truevar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"}, false); // remove only the first matchUsing remove without any params will delete the file and will remove the db instance.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove();After the above operation db.articlesComments
A Lightweight Disk based JSON Database with a MongoDB like API for Node.You will never know that you are interacting with a File SystemContentsGetting StartedDocumentationConnectLoad CollectionsWrite/SaveReadUpdateRemoveCountExamplesPerformanceContributingRelease HistoryGetting StartedInstall the module locally :var db = require('diskdb');db = db.connect('/path/to/db-folder', ['collection-name']);// you can access the traditional JSON DB methods hereDocumentationConnect to DBdb.connect(pathToFolder, ['filename']);Filename will be the name of the JSON file. You can omit the extension, diskDB will take care of it for you.var db = require('diskdb');db = db.connect('/examples/db', ['articles']);// or simplydb.connect('/examples/db', ['articles']);This will check for a directory at given path, if it does not exits, diskDB will throw an error and exit.If the directory exists but the file/collection does not exist, diskDB will create it for you.Note : If you have manually created a JSON file, please make sure it contains a valid JSON array, otherwise diskDBwill return an empty array.Else it will throw an error likeundefined:0^SyntaxError: Unexpected end of inputLoad CollectionsAlternatively you can also load collections likevar db = require('diskdb');// thisdb = db.connect('/examples/db');db.loadCollections(['articles']);//ordb.connect('/examples/db');db.loadCollections(['articles']);//ordb.connect('/examples/db') .loadCollections(['articles']);//ordb.connect('/examples/db', ['articles']);Load Multiple Collectionsvar db = require('diskdb');db.connect('/examples/db', ['articles','comments','users']);Write/Save to Collectiondb.collectionName.save(object);Once you have loaded a collection, you can access the collection's methods using the dot notation likedb.[collectionName].[methodname]To save the data, you can usevar db = require('diskdb');db.connect('db', ['articles']);var article = { title : "diskDB rocks", published : "today", rating : "5 stars"}db.articles.save(article);// ordb.articles.save([article]);The saved data will be[ { "title": "diskDB rocks", "published": "today", "rating": "5 stars", "_id": "0f6047c6c69149f0be0c8f5943be91be" }]You can also save multiple objects at once likevar db = require('diskdb');db.connect('db', ['articles']);var article1 = { title : 'diskDB rocks', published : 'today', rating : '5 stars'}var article2 = { title : 'diskDB rocks', published : 'yesterday', rating : '5 stars'}var article3 = { title : 'diskDB rocks', published : 'today', rating : '4 stars'}db.articles.save([article1, article2, article3]);And this will return the inserted objects[ { title: 'diskDB rocks', published: 'today', rating: '4 stars', _id: 'b1cdbb3525b84e8c822fc78896d0ca7b' }, { title: 'diskDB rocks', published: 'yesterday', rating: '5 stars', _id: '42997c62e1714e9f9d88bf3b87901f3b' }, { title: 'diskDB rocks', published: 'today', rating: '5 stars', _id: '4ca1c1597ddc4020bc41b4418e7a568e' } ]Read from CollectionThere are 2 methods available for reading the JSON collectiondb.collectionName.find(query)db.collectionName.findOne(query)db.collectionName.find()var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find();This will return all the records[{ title: 'diskDB
2025-04-14Rocks', published: 'today', rating: '5 stars', _id: '0f6047c6c69149f0be0c8f5943be91be'}]You can also query with a criteria likevar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find({rating : "5 stars"});This will return all the articles which have a rating of 5.Find can take multiple criteriavar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.find({rating : "5 stars", published: "yesterday"});This will return all the articles with a rating of 5, published yesterday.Nested JSON :var articleComments = { title: 'diskDB rocks', published: '2 days ago', comments: [{ name: 'a user', comment: 'this is cool', rating: 2 }, { name: 'b user', comment: 'this is ratchet', rating: 3 }, { name: 'c user', comment: 'this is awesome', rating: 2 }]}var savedArticle = db.articles.save([articleComments);foundArticles = db.articles.find({rating : 2});Since diskDB is mostly for light weight data storage, avoid nested structures and huge datasets.db.collectionName.findOne(query)var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.findOne();If you do not pass a query, diskDB will return the first article in the collection. If you pass a query, it will return first article in the filtered data.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.findOne({_id: '0f6047c6c69149f0be0c8f5943be91be'});Update Collectiondb.collectionName.update(query, data, options);You can also update one or many objects in the collectionoptions = { multi: false, // update multiple - default false upsert: false // if object is not found, add it (update-insert) - default false}Usagevar db = require('diskdb');db.connect('/examples/db', ['articles']);var query = { title : 'diskDB rocks'};var dataToBeUpdate = { title : 'diskDB rocks again!',};var options = { multi: false, upsert: false};var updated = db.articles.update(query, dataToBeUpdate, options);console.log(updated); // { updated: 1, inserted: 0 }Remove Collectiondb.collectionName.remove(query, multi);You can remove the entire collection (including the file) or you can remove the matched objects by passing in a query. When you pass a query, you can either delete all the matched objects or only the first one by passing multi as false. The default value of multi is true.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"});var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"}, true); // remove all matched. Default - multi = truevar db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove({rating : "5 stars"}, false); // remove only the first matchUsing remove without any params will delete the file and will remove the db instance.var db = require('diskdb');db.connect('/examples/db', ['articles']);db.articles.remove();After the above operation db.articles
2025-04-03Downloading DiskDB 2.8.2DiskDB is a disk cataloging and file cataloging tool for CD-ROM,ZIP,MO,FD and etc. Allows you to browse and search directory informations of all your offline and offsite storage media without having to mount them. Its Compare feature is unique and effective for media management. Also useful for directory printing and FD image backup. Available to catalog inside archive files(ZIP,LZH,CAB,RAR,TAR). - Catalogs directory informations of CD-ROMs,MOs,ZIPs,FDs,Hard Disks, or any other storage media. - Including inside archive files(ZIP,LZH,CAB,RAR,TAR). - Displays the directory and file informations of any of the catalogued disks with Windows Explorer-like browser. - Creates folders to organize your media on the database. - Searchs across all media in the database. - Compares media and catalogs at different times to show changes. - Backups and restore FDs, with raw data image, preserving boot capability. - Exports directory informatins from the database to a file in a CSV or TEXT. - Prints any part of directory catalogued on the database. --> To start download, click the following link: Download Link 1 Report Link Error | Back to DiskDB Details page More Software of "MORIMOTO Shouji" Popular software of Utilities, File & Disk Management
2025-04-04