{"repo":"Diegiwg/mycro-db","free":true,"listed":false,"github":"https://github.com/Diegiwg/mycro-db","clone":"git clone https://github.com/Diegiwg/mycro-db.git","description":"MycroDB is a JavaScript library for managing Document Databases stored in a single JSON file or in-memory.","language":"JavaScript","stars":30,"topics":["database","document-database","json","mycrodb","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"MycroDB 📦 Documentation in Portuguese Project Overview 🚀 MycroDB is a JavaScript library designed for managing Document Databases stored in a single JSON file or in memory. MycroDB is available as an NPM library, and you can find it at https://www.npmjs.com/package/mycro-db. Example Project To showcase how MycroDB works, we've developed a sample project that implements a Command Line Interface (CLI) for task management. For more information about this project, please visit its dedicated repository at Todz. Installation To integrate MycroDB into your project, you can install it via npm (or other package managers): MycroDB API To get started, import the 'MycroDatabase' class along with a 'Storage' class, and initialize both objects: Collections API To maintain organized data, the library employs a collection structure. Utilize collections to logically categorize your data. Define a Collection To create a collection, you need to provide a name, and optionally, you can include a model (an object with properties and their corresponding data types) to enhance IDE intellisense. Insert a Document into a Collection To insert a document into a collection, you should supply a plain JavaScript object with values compatible with JSON. You can insert one or more documents in a single operation by passing an array of document objects. Update a Document in a Collection To update a document, provide an object containing the 'id' key with the document's ID to be updated, and the 'data' key c","default_branch":null,"files":null,"tree":[],"storefront":"/r/Diegiwg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Diegiwg/mycro-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}