@nebula-db/core
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@nebula-db/core

Core package for NebulaDB

Part of the NebulaDB project - a high-performance, reactive, TypeScript-first, schema-optional, embeddable NoSQL database.

Installation

npm install @nebula-db/core

Quick Start

import { createDb } from '@nebula-db/core';
import { MemoryAdapter } from '@nebula-db/adapter-memory';

// Create a database with in-memory adapter
const db = createDb({
  adapter: new MemoryAdapter()
});

// Create a collection
const users = db.collection('users');

// Insert a document
await users.insert({ name: 'Alice', age: 30 });

// Query documents
const result = await users.find({ age: { $gt: 20 } });
console.log(result);

Documentation

For full documentation, visit the NebulaDB GitHub repository.

License

MIT

Package Sidebar

Install

npm i @nebula-db/core

Weekly Downloads

496

Version

0.2.2

License

MIT

Unpacked Size

177 kB

Total Files

6

Last publish

Collaborators

  • codeteck