@hold-baby/bucket-db
v0.3.0
Published
Core database engine for BucketDB.
Downloads
172
Maintainers
Readme
@bucket-db/core
Core database engine for BucketDB.
See the main README for usage and documentation.
API
BucketDB
Main database class.
const db = new BucketDB(adapter, dbPath, options);Collection
Type-safe collection interface.
const collection = db.collection<T>(name);
await collection.insert(data);
await collection.findById(id);
await collection.find(filter, options);
await collection.update(id, data, options);
await collection.delete(id);Storage Adapters
MemoryStorageAdapter- In-memory storage for testingS3Adapter- AWS S3 storageOSSAdapter- Alibaba Cloud OSS storage
License
MIT
