Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An optimised, document-based SQL database

License

NotificationsYou must be signed in to change notification settings

QSmally/QDB

Repository files navigation

QDB is a synchronous database module reliant on JavaScript object-documents with multiple levels of optimisation built into it.

Features

  • Non-blocking;
  • Optimised memory cache;
  • Schema objects and automatic migration;
  • Selection and transaction wrappers;
  • Connection pools with external thread support.

Links

Installation

npm install QSmally/QDB

constQDB=require("qdatabase");// ...

Usage

The main interface for interacting with QDB.

constservice=newQDB.Connection(path,options?);

A SQL transaction manager.

// Instantiates a transaction within the database. It is required// to call 'commit' or 'rollback' on the returned Transaction.consttransaction=service.transaction();// Perform changes in the connection...transaction.commit();// ortransaction.rollback();

An unchanged piece of the database in memory.

// Aggregate with certain instructions, like joining tables,// ordering them and regrouping them by a property.constusers=service.select().join(projects,"UserId","Projects").order(user=>Object.keys(user.Projects).length,QDB.descending).group("Rank");

QDB Shell

The library integrates a CLI for interacting with QDB deployments.

npm install -g QSmally/QDB

$ qdb make Instances.qdb$ qdb Development.qdb create Users$ qdb Production.qdb vacuum

This module is licensed underApache 2.0.


[8]ページ先頭

©2009-2025 Movatter.jp