Cherry3 is a SQlite And PostgreSQL object modeling tool designed to work in an asynchronous environment.
Installation
Using npm:
$ npm install cherry3
$ npm install sqlite3 -g
$ npm install pg -g
Other Installations:
$ yarn add cherry3
$ pnpm add cherry3
Features
- Simple Setup: Get started quickly with minimal configuration.
- SQlite And PostgreSQL Storage: Sqlite And PostgreSQL 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.
Documentation
=> Click Here
Usage
import { Model, Schema, Types } from 'cherry3';
const userSchema = Schema({
username: { type: Types.String, default: 'fivesobes' },
age: Types.Number,
email: { type: Types.String, default: "support@luppux.com" },
isAdmin: Types.Boolean,
interests: Types.Array,
balance: Types.Float,
date: Types.Date
});
const UserModel = new Model('Users', userSchema);
const userData = {
username: 'fivesobes',
age: 20,
email: 'support@luppux.com',
isAdmin: false,
interests: ['coding', 'reading', 'ertus-mom'],
};
(async () => {
try {
const users = await UserModel.find({ age: 20, isAdmin: false });
console.log(users);
} catch (error) {
console.error('Error performing CRUD operations:', error.message);
}
})();
Settings File Definitions
=> Click Here
Types
import { Types } from 'cherry3';
Types.Number
Types.Object
Types.Date
Types.String
Types.Boolean
Types.Array
Sqlite Viewer Extension
For Visual Studio Code
PostgreSQL And Other Database Viewer Extension
For Visual Studio Code
License
Cherry3 is licensed under the GPL 3.0 License. See the LICENSE file for details.
Changelog
=> Click Here
Support
