An open API service indexing awesome lists of open source software.

https://github.com/artegoser/tessradb

TessraDB is local noSQL database
https://github.com/artegoser/tessradb

database db embedded-database json-database nosql nosql-database serverless tessradb typescript

Last synced: 2 months ago
JSON representation

TessraDB is local noSQL database

Awesome Lists containing this project

README

          




Markdownify


TessraDB
Tweet me


Local noSQL database for Node.js



npm


Travis (.com)


Coveralls


Subreddit subscribers


Features
How To Use
Roadmap
Contributing
Credits
License


Documentation

## Features

- Low memory consumption and fast work due to streaming reading and writing.
- Smart filter for extracting data from collections.
- Atomic write, your data will not be corrupted.

## How To Use

### Installation

- #### NPM
```bash
npm i tessradb
```
- #### YARN
```bash
yarn add tessradb
```

### Usage

- ### Import

```js
let { TessraDB } = require("tessradb");
//or
import { TessraDB } from "tessradb";
```

- ### First DataBase

```js
import { TessraDB } from "tessradb";
let db = new TessraDB("first"); //create a db with name "first"
run(db);

async function run(db) {
let firstCol = await db.getCollection("firstCollection");
await firstCol.insertMany([
{ type: "man", age: 1, height: 56 },
{ type: "woman", age: 2, height: 76 },
]); //insert documents to collection
console.log(await firstCol.findOne({ type: "man" }));
//find one document with type "man"
//output: { type: "man", age: 1, height: 56 }
}
```

## Roadmap

[TODO list](https://github.com/artegoser/TessraDB/blob/main/.github/todo.md)
You can also suggest new features in [issues](https://github.com/artegoser/TessraDB/issues) yourself.

## Contributing

![Our contributors](https://badges.pufler.dev/contributors/artegoser/tessradb?size=50&padding=2&bots=false)

Your contributions are always welcome! Please look at the [contribution guidelines](https://github.com/artegoser/TessraDB/blob/main/.github/CONTRIBUTING.md) first. 🎉

## Credits

TessraDB uses:

- [JSONStream](https://www.npmjs.com/package/JSONStream) for stream reading and writing JSON

## License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/artegoser/TessraDB/blob/main/LICENSE)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fartegoser%2FTessraDB.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FTessraDB?ref=badge_large)