{"id":15003417,"url":"https://github.com/totaljs/dbms","last_synced_at":"2026-03-02T10:31:10.239Z","repository":{"id":32789394,"uuid":"142661913","full_name":"totaljs/dbms","owner":"totaljs","description":"Database Management System","archived":false,"fork":false,"pushed_at":"2024-05-27T11:49:31.000Z","size":265,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T23:44:58.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totaljs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","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},"funding":{"patreon":"totaljs","open_collective":"totalplatform","ko_fi":"totaljs","liberapay":"totaljs","buy_me_a_coffee":"totaljs","custom":"https://www.totaljs.com/support/"}},"created_at":"2018-07-28T08:48:54.000Z","updated_at":"2025-04-09T10:13:08.000Z","dependencies_parsed_at":"2024-06-19T09:57:54.788Z","dependency_job_id":"774dcb6e-7d2a-4697-91f1-d1a463e5ee0d","html_url":"https://github.com/totaljs/dbms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/totaljs/dbms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fdbms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fdbms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fdbms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fdbms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totaljs","download_url":"https://codeload.github.com/totaljs/dbms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fdbms/sbom","scorecard":{"id":895340,"data":{"date":"2025-08-11","repo":{"name":"github.com/totaljs/dbms","commit":"8ea09a5dc6494c20dd8c62a3f9c9ea323a9d2303"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 6/23 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Info: FSF or OSI recognized license: MIT License: license.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T13:28:46.696Z","repository_id":32789394,"created_at":"2025-08-24T13:28:46.697Z","updated_at":"2025-08-24T13:28:46.697Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29998512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T09:59:02.300Z","status":"ssl_error","status_checked_at":"2026-03-02T09:59:02.001Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-09-24T18:58:20.843Z","updated_at":"2026-03-02T10:31:10.151Z","avatar_url":"https://github.com/totaljs.png","language":"JavaScript","funding_links":["https://patreon.com/totaljs","https://opencollective.com/totalplatform","https://ko-fi.com/totaljs","https://liberapay.com/totaljs","https://buymeacoffee.com/totaljs","https://www.totaljs.com/support/"],"categories":[],"sub_categories":[],"readme":"# Node Database Management System (ORM)\n\n\n- [__Documentation__](https://docs.totaljs.com/dbms/)\n- [Website](https://www.totaljs.com/)\n- [__Documentation__](https://docs.totaljs.com/total4/)\n- [Chat support](https://platform.totaljs.com/?open=messenger)\n- [Join __Total.js Telegram__](https://t.me/totalplatform)\n- [Support](https://www.totaljs.com/support/)\n- supports `PostgreSQL`, `MySQL`, Total.js `TextDB` and part of `MongoDB`\n\n## Initialization\n\n- installation `$ npm install dbms`\n\t- install MySQL: `$ npm install mysql2`\n\t- install PostgreSQL: `$ npm install pg`\n\t- install MongoDB: `$ npm install mongodb`\n\n```js\nconst dbms = require('dbms');\n\ndbms.init([alias], connection_string);\n// @alias {String} Optional, alias for connection string (default: 'default')\n// @connection_string {String} A connection string to DB\n\n// PostgreSQL\ndbms.init('postgresql://user:pass@localhost:5432/dbname');\ndbms.init('mypg', 'postgresql://user:pass@localhost:5432/dbname'); // with a name for more DB engines\n\n// MySQL \u0026 Maria DB\ndbms.init('mysql://user:pass@localhost:3306/dbname');\ndbms.init('mysql', 'mysql://user:pass@localhost:3306/dbname'); // with a name for more DB engines\n\n// Total.js NoSQL embedded\ndbms.init('nosql');\ndbms.init('mynosql', 'nosql'); // with a name for more DB engines\n\n// Total.js Table\ndbms.init('table');\ndbms.init('mytable', 'nosql'); // with a name for more DB engines\n```\n\n## Usage\n\n```js\n// Is a global method\nvar db = DBMS();\n\n// Finds records\n// A response: Array\n// returns QueryBuilder\ndb.find('collection_table_name');\ndb.find('mypg/collection_table_name');\ndb.find('mynosql/collection_table_name');\ndb.find('mytable/collection_table_name');\n\n// Finds the one record\n// A response: Object\n// returns QueryBuilder\ndb.one('collection_table_name');\ndb.one('mypg/collection_table_name');\ndb.one('mynosql/collection_table_name');\ndb.one('mytable/collection_table_name');\n\n// Inserts a new record\n// A response: Number\n// returns QueryBuilder\ndb.insert('collection_table_name', document, [unique]);\ndb.insert('mypg/collection_table_name', document, [unique]);\ndb.insert('mynosql/collection_table_name', document, [unique]);\ndb.insert('mytable/collection_table_name', document, [unique]);\n```\n\n## Contact\n\n- Contact \u003chttps://www.totaljs.com/contact/\u003e\n- [Chat support](https://platform.totaljs.com/?open=messenger)\n- [Join to __Total.js Telegram__](https://t.me/totalplatform)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotaljs%2Fdbms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotaljs%2Fdbms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotaljs%2Fdbms/lists"}