{"id":24054583,"url":"https://github.com/bes-js/cherry3","last_synced_at":"2025-04-22T20:45:40.945Z","repository":{"id":225360625,"uuid":"765703346","full_name":"Bes-js/cherry3","owner":"Bes-js","description":"Cherry3 is a SQlite And PostgreSQL object modeling tool designed to work in an asynchronous environment.","archived":false,"fork":false,"pushed_at":"2024-09-04T13:18:35.000Z","size":340,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T12:49:54.195Z","etag":null,"topics":["database","mongodb","npm","orm","postgres","postgresql","sequelize","sql","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cherry3","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bes-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-01T13:01:26.000Z","updated_at":"2025-01-05T13:06:48.000Z","dependencies_parsed_at":"2024-10-27T19:26:23.971Z","dependency_job_id":"7fb05369-80b2-4b51-a4c3-07393ebfaec6","html_url":"https://github.com/Bes-js/cherry3","commit_stats":{"total_commits":86,"total_committers":2,"mean_commits":43.0,"dds":"0.011627906976744207","last_synced_commit":"9171752ab932efe5897c0f7025e77e9081739202"},"previous_names":["bes-js/cherry3"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fcherry3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fcherry3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fcherry3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fcherry3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bes-js","download_url":"https://codeload.github.com/Bes-js/cherry3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233132515,"owners_count":18629750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","mongodb","npm","orm","postgres","postgresql","sequelize","sql","sqlite","sqlite3"],"created_at":"2025-01-09T03:48:32.203Z","updated_at":"2025-01-09T03:48:37.526Z","avatar_url":"https://github.com/Bes-js.png","language":"JavaScript","readme":"\u003cbr/\u003e\n\u003cimg src=\"./assets/package-logo.png\"\u003e\n\u003ch4 align=\"center\"\u003eCherry3 is a SQlite And PostgreSQL object modeling tool designed to work in an asynchronous environment.\u003c/h6\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/cherry3?style=for-the-badge\u0026logo=npm\u0026logoColor=red\"\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/Bes-js/cherry3?style=for-the-badge\u0026logo=github\u0026logoColor=white\"\u003e \n\u003cimg src=\"https://img.shields.io/npm/l/cherry3?style=for-the-badge\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/unpacked-size/cherry3?style=for-the-badge\"\u003e \n\u003cimg src=\"https://img.shields.io/npm/dt/cherry3?style=for-the-badge\u0026logoColor=blue\"\u003e \n\u003cimg src=\"https://img.shields.io/github/package-json/dependency-version/Bes-js/cherry3/sequelize?style=for-the-badge\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/sqlite3?style=for-the-badge\u0026logo=sqlite\u0026logoColor=blue\u0026label=SQlite3\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/pg?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\u0026label=PostgreSQL\"\u003e\n\u003ca href=\"https://discord.gg/luppux\" target=\"_blank\"\u003e \n\u003cimg alt=\"Discord\" src=\"https://img.shields.io/badge/Support-Click%20here-7289d9?style=for-the-badge\u0026logo=discord\"\u003e \n\u003c/a\u003e\n\u003ca href=\"https://www.buymeacoffee.com/beykant\" target=\"_blank\"\u003e\n\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" width=\"120px\" height=\"30px\" alt=\"Buy Me A Coffee\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n#\n## Installation\n\nUsing npm:\n```shell\n$ npm install cherry3\n\n$ npm install sqlite3 -g   # ( For SQlite )\n$ npm install pg -g   # ( For PostgreSQL )\n```\n\nOther Installations:\n\n```bash\n$ yarn add cherry3\n```\n\n```bash\n$ pnpm add cherry3\n```\n\n#\n## Features\n\n* **Simple Setup:** Get started quickly with minimal configuration.\n* **SQlite And PostgreSQL Storage:** Sqlite And PostgreSQL Will Come To Your Help Because It Is Compressed, Economical And Fast.\n* **Asynchronous Operations:** Perform Database Operations Asynchronously Using Promises.\n* **Filter and Update:** Easily filter and update records in your collections.\n#\n## Documentation\n[*=\u003e* **Click Here**](https://fivesobes.gitbook.io/cherry3/)\n## Usage\n```js\nimport { Model, Schema, Types } from 'cherry3';\n/* const { Model, Schema, Types } = require('cherry3'); For CommonJS */\n\n// Define a schema for a collection\nconst userSchema = Schema({\n    username: { type: Types.String, default: 'fivesobes' },\n    age: Types.Number,\n    email: { type: Types.String, default: \"support@luppux.com\" },\n    isAdmin: Types.Boolean,\n    interests: Types.Array,\n    balance: Types.Float,\n    date: Types.Date\n});\n\n// Create a model for the \"users\" collection\nconst UserModel = new Model('Users', userSchema);\n\n\n// Example data\nconst userData = {\n  username: 'fivesobes',\n  age: 20,\n  email: 'support@luppux.com',\n  isAdmin: false,\n  interests: ['coding', 'reading', 'ertus-mom'],\n};\n\n(async () =\u003e {\n// CRUD operations\n  try {\n    /* FIND USERS */\n\n    // Find multiple users with conditions\n    const users = await UserModel.find({ age: 20, isAdmin: false });\n    console.log(users);\n\n\n  } catch (error) {\n    console.error('Error performing CRUD operations:', error.message);\n  }\n})();\n```\n#\n## Settings File Definitions\n[*=\u003e* **Click Here**](https://fivesobes.gitbook.io/cherry3/sql-config-file)\n#\n## Types\n```js\nimport { Types } from 'cherry3';\n\nTypes.Number // Example =\u003e 5\nTypes.Object // Example =\u003e { test:\"data text\", test3: 5 } \nTypes.Date // Example =\u003e 1.03.2024\nTypes.String // Example =\u003e \"test data text\"\nTypes.Boolean // Example =\u003e true or false\nTypes.Array // Example =\u003e [ \"five\" , \"so\" , 5 ]\n```\n#\n## Sqlite Viewer Extension\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=yy0931.vscode-sqlite3-editor\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/yy0931/sqlite3-editor/main/demo.gif\"\u003e \u003c/a\u003e\n\n[For Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=yy0931.vscode-sqlite3-editor)\n\n## PostgreSQL And Other Database Viewer Extension\n\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=cweijan.dbclient-jdbc\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/database-client/jdbc-adapter-server/6b5f8d157567ee38619a2ece6afc914a297f6a35/image/README/1702302967898.png\"\u003e \u003c/a\u003e\n\n[For Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=cweijan.dbclient-jdbc)\n\n## License\n\nCherry3 is licensed under the **GPL 3.0** License. See the [LICENSE](./LICENSE.md) file for details.\n\n## Changelog\n\n[*=\u003e* **Click Here**](./CHANGELOG.md)\n\n## Support\n\n[![Discord Banner](https://api.weblutions.com/discord/invite/luppux/)](https://discord.gg/luppux)\n","funding_links":["https://www.buymeacoffee.com/beykant"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-js%2Fcherry3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbes-js%2Fcherry3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-js%2Fcherry3/lists"}