All Projects â†’ Dreamyplayer â†’ dreamy-db

Dreamyplayer / dreamy-db

Licence: Apache-2.0 license
🔥 Dreamy-db - A Powerful database for storing, accessing, and managing multiple database.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to dreamy-db

nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+312%)
Mutual labels:  databases, sqlite3
Pwned
Simple C++ code for simple tasks
Stars: ✭ 16 (-36%)
Mutual labels:  leveldb, sqlite3
sqllex
The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!
Stars: ✭ 80 (+220%)
Mutual labels:  databases, sqlite3
TIWAP
Totally Insecure Web Application Project (TIWAP)
Stars: ✭ 137 (+448%)
Mutual labels:  sqlite3
Algorithms
Algorithms competition, Leetcode solutions, deep learning algorithms, parallel computing, and SQL solutions.
Stars: ✭ 42 (+68%)
Mutual labels:  databases
utxodump
dump bitcoin utxo data
Stars: ✭ 17 (-32%)
Mutual labels:  leveldb
turkiye-il-ilce-sokak-mahalle-veri-tabani
https://adres.nvi.gov.tr/ adresinde yer alan tüm İl - İlçe - Mahalle / Köy / Mezra / Mevki - CSBM bilgilerini içeren veri tabanları (PostgreSQL, MariaDB / MySQL, MongoDB, Sqlite ve Redis)
Stars: ✭ 71 (+184%)
Mutual labels:  sqlite3
etiquette
WIP tag-based file organizer & search
Stars: ✭ 27 (+8%)
Mutual labels:  sqlite3
luf
Statically typed, embeddable, scripting language written in Zig.
Stars: ✭ 26 (+4%)
Mutual labels:  embeddable
electron-react-ts-rxdb-realm-sqlite
Demo of Native Databases with Electron and ReactJS. Realm, SQLite and RxDB ( with LevelDB/IndexedDB/InMemory adapters)
Stars: ✭ 27 (+8%)
Mutual labels:  leveldb
SchemaMapper
A .NET class library that allows you to import data from different sources into a unified destination
Stars: ✭ 41 (+64%)
Mutual labels:  databases
sqlite3
pure-Go sqlite3 file reader
Stars: ✭ 120 (+380%)
Mutual labels:  sqlite3
doclite
PHP NoSQL database and document store
Stars: ✭ 57 (+128%)
Mutual labels:  sqlite3
embedio-extras
Additional Modules showing how to extend EmbedIO.
Stars: ✭ 43 (+72%)
Mutual labels:  sqlite3
bftdb
Tendermint + Sqlite3 = BFT Database Replication
Stars: ✭ 35 (+40%)
Mutual labels:  sqlite3
http
Tiny, embeddable HTTP client with simple API for the browser
Stars: ✭ 21 (-16%)
Mutual labels:  embeddable
roundup
un-official mirror of http://hg.code.sf.net/p/roundup/code -- used for CI. Please visit https://issues.roundup-tracker.org for finding starter issues or log new issues.
Stars: ✭ 20 (-20%)
Mutual labels:  sqlite3
indexd
An external bitcoind index management service module
Stars: ✭ 50 (+100%)
Mutual labels:  leveldb
db-wilayah-indonesia
Data wilayah Indonesia meliputi Provinsi, Kabupaten / Kota, Kecamatan, Kelurahan disertai dengan kodepos dan standar singkatan provinsi dan kabupaten / kota.
Stars: ✭ 53 (+112%)
Mutual labels:  databases
migration
Simple library writen in PHP without framework dependancy for database version control. Supports Sqlite, MySql, Sql Server and Postgres
Stars: ✭ 142 (+468%)
Mutual labels:  sqlite3

dreamy-db

Discord server NPM version NPM downloads Build status Dependencies Patreon

Dreamy-db

About

Dreamy-db - A Powerful database for storing, accessing, and managing multiple databases.
A powerful node.js module that allows you to interact with the databases very easily.

Why?

  • Object-oriented
  • Feature-rich
  • Performant
  • Configurable
  • 100% Promise-based
  • Speedy and efficient
  • Persistent storage

Features

  • Adapters: By default, data is cached in memory. Optionally, install and utilize a "storage adapter".
  • Namespaces: Namespaces isolate elements within the database to enable useful functionalities.
  • Custom Serializers: Utilizes its own data serialization methods to ensure consistency across various storage backends.
  • Third-Party Adapters: You can optionally utilize third-party storage adapters or build your own.
  • Embeddable: Designed to be easily embeddable inside modules.
  • Data Types: Handles all the JSON types including Buffer.
  • Error-Handling: Connection errors are transmitted through, from the adapter to the main instance; consequently, connection errors do not exit or kill the process.

Officially supported adapters

By default, data is cached in memory. Optionally, install and utilize a "storage adapter".

  • MongoDB
  • MySQL
  • PostgreSQL
  • Redis
  • SQLite.

Installation

Node.js 12.x or newer is required.

Install dreamy-db using yarn:

yarn add dreamy-db

Or npm:

yarn add dreamy-db

Create an instance of dreamy-db once you've installed dreamy-db and any necessary drivers.

const { Dreamy } = require('dreamy-db');

// One of the following
const db = new Dreamy(); // for in-memory storage
const db = new Dreamy('redis://user:pass@localhost:6379');
const db = new Dreamy('mongodb://user:pass@localhost:27017/dbname');
const db = new Dreamy('sqlite://path/to/database.sqlite');
const db = new Dreamy('postgresql://user:pass@localhost:5432/dbname');
const db = new Dreamy('mysql://user:pass@localhost:3306/dbname');

Make sure to handle connection errors.

db.on('error', error => console.error('Dreamy#Connection Error: ', error));

Usage

(async () => {
  await db
    .set('Profile', {
      id: 1234567890,
      Name: 'Dreamy',
      verified: true,
      tags: ['dreamy-db', 'database'],
      height: 6.2,
      Balance: 450,
      Job: null,
    })
    .then(console.log)
    .catch(console.error);

  // Returns an array that contains the keys of each element.
  await db
    .keys()
    .then(data => console.log(data))
    .catch(console.error);

  // Returns an array that contains the values of each element.
  await db
    .values()
    .then(data => console.log(data))
    .catch(console.error);

  // Gets all the elements from the database.
  await db
    .all()
    .then(data => console.log(data))
    .catch(console.error);

  // Clears all elements from the database.
  await db.clear().then(console.log).catch(console.error);

  // Deletes an element from the database by key.
  await db.delete('profile').then(console.log).catch(console.error);

})(); // Callback

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].