{"id":16387479,"url":"https://github.com/mastilver/nosqwal","last_synced_at":"2026-02-12T19:32:27.324Z","repository":{"id":72365825,"uuid":"50501293","full_name":"mastilver/nosqwal","owner":"mastilver","description":"NoSQL Database interface","archived":false,"fork":false,"pushed_at":"2017-05-05T19:15:29.000Z","size":44,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T11:19:19.095Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mastilver.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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":"2016-01-27T10:57:32.000Z","updated_at":"2017-01-11T10:23:48.000Z","dependencies_parsed_at":"2023-02-26T10:30:39.047Z","dependency_job_id":null,"html_url":"https://github.com/mastilver/nosqwal","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":0.0357142857142857,"last_synced_commit":"7a1a48d71a625153b9fec8403bcb73fec170e2ac"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/mastilver/nosqwal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fnosqwal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fnosqwal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fnosqwal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fnosqwal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastilver","download_url":"https://codeload.github.com/mastilver/nosqwal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastilver%2Fnosqwal/sbom","scorecard":{"id":623198,"data":{"date":"2025-08-11","repo":{"name":"github.com/mastilver/nosqwal","commit":"7a1a48d71a625153b9fec8403bcb73fec170e2ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: MIT License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 5 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-21T05:40:05.318Z","repository_id":72365825,"created_at":"2025-08-21T05:40:05.318Z","updated_at":"2025-08-21T05:40:05.318Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29378819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"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-10-11T04:26:39.465Z","updated_at":"2026-02-12T19:32:27.307Z","avatar_url":"https://github.com/mastilver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nosqwal [![Build Status](https://travis-ci.org/mastilver/nosqwal.svg?branch=master)](https://travis-ci.org/mastilver/nosqwal) [![Coverage Status](https://coveralls.io/repos/github/mastilver/nosqwal/badge.svg?branch=master)](https://coveralls.io/github/mastilver/nosqwal?branch=master)\n\n\u003e Low level ODM library\n\n\n## Install\n\n```\n$ npm install --save nosqwal-memory\n```\n\n## Adapters\n\n- [In memory](https://www.npmjs.com/package/nosqwal-memory)\n- [Couchbase](https://github.com/mastilver/nosqwal-couchbase)\n- [OrientDb](https://github.com/mastilver/nosqwal-orientdb)\n\n## Usage\n\n```js\nconst nosqwal = require('nosqwal-memory');\nconst db = nosqwal();\n\nconst userCollection = db.defineCollection('user');\n\nuserCollection.create({\n    username: 'Alice',\n    password: '*****'\n})\n.then(alice =\u003e {\n    return userCollection.query(\n        where: {\n            username: {\n                $eq: 'Alice'\n            }\n        },\n        limit: 1\n    });\n})\n.then(users =\u003e {\n    console.log(users[0].username);\n    //=\u003e 'Alice'\n});\n```\n\n\n## API\n\n\n### const db = nosqwal([options])\n\n#### options\n\nType: `Object`\u003cbr\u003e\nDefault: `{}`\n\nOptions needed to customize your nosqwal instance, they are different for each nosqwal adapters\n\n\n### const collection = db.defineCollection(collectionName)\n\n#### collectionName\n\nType: `string`\n\nName of the collection\n\n### collection.create(document);\n\nRetuns a Promise that resolve to the newly created document\nThe property `id` is added to that document\n\n#### document\n\nType: `Object`\u003cbr\u003e\n\nThe document that will be created\n\n\n### collection.get(documentId)\n\nReturns a Promise that resolve to the requested document\n\n#### documentId\n\nThe unique identifier of the document to retrieve\n\n### collection.update(document)\n\nReturns a Promise that resolve to the updated document\n\nType: `string`\n\n#### document\n\nThe object that will replace the current document stored in the database\n\n##### document.id\n\nThe unique identifier of the document to update\n\n\n### collection.query({ where, orderBy, limit, offset })\n\nReturns a Promise that resolve in an array of the requested document\n\n#### where\n\nType: `Object`\n\n##### where[key] = whereClause\n\n###### key\n\nType: `string`\n\nKey or path of field to match\n\nKey could also be one of the following for more complex query:\n- `$not`\n- `$and`\n- `$or`\n\n###### whereClause\n\nType: `object`\n\nWhereClause define the where clause for a field. WhereClause can also be the same as `where` for more complex query.\n\n###### whereClause[operator] = value\n\nOperator can be:\n\n| operator | description | `value` type | data type |\n|----------|-------------|--------------|-----------|\n| `$eq` | equal to | `any` | `any` |\n| `$ne` | not equal to | `any` | `any` |\n| `$gt` | gretter than | `string`,`number`,`Date` | `string`,`number`,`Date` |\n| `$gte` | gretter or equal to | `string`,`number`,`Date` | `string`,`number`,`Date` |\n| `$lt` | lower than | `string`,`number`,`Date` | `string`,`number`,`Date` |\n| `$lte` | lower or equal to | `string`,`number`,`Date` | `string`,`number`,`Date` |\n| `$contains` | string/array contains | `any` | `string`, `Array` |\n| `$in` | is in array | `Array` | `any` |\n\n#### orderBy\n\nType: `array`\u003cbr\u003e\nDefault: []\n\n##### orderBy[][0]\n\nType: `string`\u003cbr\u003e\n\nPath / key to order\n\n##### orderBy[][1]\n\nIs ascending\n\nType: `bool`\u003cbr\u003e\nDefault: `true`\n\n#### limit\n\nType: `number`\u003cbr\u003e\nDefault: `undefined`\n\nHow many documents will be returned\n\n#### offset\n\nType: `number`\u003cbr\u003e\nDefault: `0`\n\n## License\n\nMIT © [Thomas Sileghem](http://mastilver.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastilver%2Fnosqwal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastilver%2Fnosqwal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastilver%2Fnosqwal/lists"}