Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including quick.db with all npm packages installed. Try it out:

var quickDb = require("quick.db")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

quick.db v6.3.2

An easy, non locking, persistent sqlite3 database for storing any type of data. No setup required, only takes a few lines to set & fetch objects.

Imgur

Discord Server YouTube Channel

Website / DocumentationDiscord Support (2165+ Users)NPM Page
quickdb.js.orgdiscord.gg/plexidevnpmjs.com/package/quick.db

Quick.db is an open-sourced package meant to provide an easy way for beginners, and people of all levels to access & manage a database. All data is stored persistently, and comes with various extra features, such as a queue system to prevent database locking, and more.

Want to provide feedback to help improve Quick.db? Click Here!


Imgur


Imgur

All data in quick.db is stored persistently in a database. Here is an example of setting an object in the database, then fetching parts & the full object.

const db = require('quick.db');

// Setting the FULL object
db.set('userInfo', { part1: 'Hello', part2: 'World!' }).then( i => console.log(i))
// -> { part1: 'Hello', part2: 'World!' }

// Fetching only PARTS of the object
db.fetch('userInfo', { target: '.part1' }).then( i => console.log(i)) 
// -> 'Hello'

db.fetch('userInfo', { target: '.part2' }).then( i => console.log(i)) 
// -> 'World!'

// Fetching the FULL object
db.fetch('userInfo').then( i => console.log(i))
// -> { part1: 'Hello', part2: 'World!' }

Imgur

Linux

  • npm i quick.db

Windows

  1. Run: npm -g --add-python-to-path install windows-build-tools node-gyp in powershell as administrator
  2. Restart CMD prompt windows (Close & Reopen)
  3. Run: npm i quick.db

Mac

  1. Install: XCode
  2. Run: npm i -g node-gyp in terminal
  3. Run: node-gyp --python /path/to/python2.7 (skip this step if you didn't install python 3.x)
  4. Run: npm i quick.db

Require Package & Create Webviewer

const db = require('quick.db');
db.createWebview('password', PORT);

Imgur

Quick.db is an easy to use database alternative, it was designed to be simple to let new users who are just getting into development not need to worry about large-scale databases. It works by storing data to a set ID(key), then access that persistent data anytime through a .fetch() function.

You can think of it like a giant persistent JSON object, you can add new items to the object using .set(), & fetch items from the JSON object using .fetch(). The ID in this would be the name of the json object to fetch & set.


Over 407 open-source programs use Quick.db as a dependent! Source


Imgur

FOSSA Status

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free