{"id":18738987,"url":"https://github.com/gaubee/gqc-mongodb","last_synced_at":"2025-09-15T06:08:19.737Z","repository":{"id":57252828,"uuid":"52536175","full_name":"Gaubee/GQC-mongodb","owner":"Gaubee","description":"用于GQ框架的Mongodb服务组件","archived":false,"fork":false,"pushed_at":"2016-03-03T13:15:09.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-30T03:25:44.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gaubee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-25T15:38:27.000Z","updated_at":"2021-12-18T09:35:08.000Z","dependencies_parsed_at":"2022-08-31T22:20:29.203Z","dependency_job_id":null,"html_url":"https://github.com/Gaubee/GQC-mongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gaubee/GQC-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2FGQC-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2FGQC-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2FGQC-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2FGQC-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gaubee","download_url":"https://codeload.github.com/Gaubee/GQC-mongodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2FGQC-mongodb/sbom","scorecard":{"id":55071,"data":{"date":"2025-08-11","repo":{"name":"github.com/Gaubee/GQC-mongodb","commit":"d0b7dc7540cecec0749a3d74ae28cbfa12f0c3d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-15T00:31:34.115Z","repository_id":57252828,"created_at":"2025-08-15T00:31:34.115Z","updated_at":"2025-08-15T00:31:34.115Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275213915,"owners_count":25424888,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-07T15:32:20.127Z","updated_at":"2025-09-15T06:08:19.691Z","avatar_url":"https://github.com/Gaubee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FQC-mongodb\n\n## 客户端安装\n\n```\nnpm install gqc-mongodb --save\n```\n\n## 客户端使用\n\n```\nconst gqc_mongodb = require(\"gqc-mongodb\");\n// 安装到tcp实例上\ngqc_mongodb.install(socket);\n\n// 组件使用前必须声明using-App\nyield client.useApp(\"Gaubee\", \"123456\", \"QAQ\");\n\n// 进行初始化连接，得到DB对象\n// [DB](http://mongodb.github.io/node-mongodb-native/2.0/api/MongoClient.html#.connect)\nconst db = yield client.mongodbClient([\"mongodb://localhost:27017/test\"]);\n\n// 使用DB实例化出collection对象\n// [Collection](http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html)\nconst clo = yield db.collection(\"test_correctly_access_collections\");\n\n// 插入，返回Promise对象\nvar _insert = yield clo.insert({\n name: \"Gaubee\"\n});\nconsole.log(_insert);\n\n// 查询，返回Cursor对象\n// [Cusror](http://mongodb.github.io/node-mongodb-native/2.0/api/Cursor.html)\nyield clo.find({}).toArray();\nyield clo.find({}).limit(2).skip(2).toArray();\n\nyield col.find({\n    _id: [\"ObjectID\", \"@\", 56d3de33f37222a4521b2012] // BSON的对象在JSON中的表达方式\n});\n\n```\n\n### BSON\n\nMongodb中有以下几种特殊的数据类型：\n* Binary\n* Code\n* Map\n* DBRef\n* Double\n* Long\n* MinKey\n* MaxKey\n* ObjectID\n* ObjectId\n* Symbol\n* Timestamp\n\n使用JSON表达的方式统一的格式：\n```js\n[ TYPE_NAME , \"@\" , ...args ]\n\n// == 转化为代码 ==\u003e\n\nmongodb[TYPE_NAME]( ...args )\n```\n\n\n## 服务端安装\n```\nnpm install gqc-mongodb --save --server\n```\n\n## 服务端（提供Mongodb数据服务的一端）使用\n\n```\nconst gqc_mongodb = require(\"gqc-mongodb\");\n// 安装到tcp实例上\ngqc_mongodb.install(socket);\n\n// 组件使用前必须声明using-App\nyield client.useApp(\"Gaubee\", \"123456\", \"QAQ\");\n\n// 注册数据服务组件\nyield client.mongodbServer();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fgqc-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaubee%2Fgqc-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fgqc-mongodb/lists"}