@based/db
v0.0.31
Published
BasedDb is a powerful database solution that supports various data types, references, edges, and operations. It also offers concurrency handling, client-server architecture support, and more.
Downloads
876
Keywords
Readme
BasedDb
BasedDb is a powerful database solution that supports various data types, references, edges, and operations. It also offers concurrency handling, client-server architecture support, and more.
Features
- Schema definition and management
- Data creation, querying, updating, and deletion
- Support for strings, numbers, booleans, binaries, aliases, enums, and cardinality
- Edges and references for advanced data modeling
- Concurrency support for high-load scenarios
- Client-server design for distributed systems
- Checksum, analytics, and expiration features
Install
Prerequisites:
- recent GNU make
- gcc with recent enough C23 support
- zig 0.14.0
- npm & node.js, v20.11.1 or newer
npm i
npm run get-napi // only need this the first time
npm run build
Running tests
Run all tests + ldb + build c, zig and js
npm run test
Run specific test file - does substring matching
npm run test -- range.js
Run specific test file & run specific test
npm run test -- range.js:range
Different flavours of test
Only builds zig
npm run test-zig
Builds nothing only runs tests
npm run test-fast