Cherry3 is a SQlite object modeling tool designed to work in an asynchronous environment.
Installation
Using npm:
$ npm install cherry3-lite
Using yarn:
$ yarn add cherry3-lite
Using pnpm:
$ pnpm add cherry3-lite
Features
- Simple Setup: Get started quickly with minimal configuration.
- SQlite Storage: Sqlite Will Come To Your Help Because It Is Compressed, Economical And Fast.
- Asynchronous Operations: Perform Database Operations Asynchronously Using Promises.
- Filter and Update: Easily filter and update records in your collections.
Usage
import db from 'cherry3-lite';
var data;
(async () => {
data = await db.set('test',5);
console.log(data);
data = await db.get('test');
console.log(data);
data = await db.delete('test');
console.log(data);
data = await db.has('test');
console.log(data);
data = await db.fetch('test');
console.log(data);
data = await db.add('test',6);
console.log(data);
data = await db.sub('test',1);
console.log(data);
data = await db.inc('test',2);
console.log(data);
data = await db.dec('test',2);
console.log(data);
data = await db.all();
console.log(data);
data = await db.fetchAll();
console.log(data);
data = await db.type('test');
console.log(data);
data = await db.push('testArray',1);
console.log(data);
data = await db.push('testArray',[2,3,4,5]);
console.log(data);
data = await db.pull('testArray',3);
console.log(data);
data = await db.pull('testArray',[1,2,4]);
console.log(data);
data = db.version;
console.log(data)
})();
Settings File Definitions
=> Click Here
Sqlite Viewer Extension
For Visual Studio Code
License
Cherry3 is licensed under the Apache License 2.0 License. See the LICENSE file for details.
Changelog
=> Click Here
Support