0.2.2 • Published 6 months ago
@nebula-db/core v0.2.2
@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/coreQuick 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