{"id":44288843,"url":"https://github.com/thinodium/thinodium-knex","last_synced_at":"2026-02-10T23:09:28.746Z","repository":{"id":152157801,"uuid":"77531994","full_name":"thinodium/thinodium-knex","owner":"thinodium","description":"Knex adapter for Thinodium ODM library for working with relational databases","archived":false,"fork":false,"pushed_at":"2017-01-15T18:53:32.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T10:29:25.713Z","etag":null,"topics":["database","knex","nodejs","odm","postgres","relational-databases","sqlite"],"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/thinodium.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-28T12:40:53.000Z","updated_at":"2017-03-19T16:55:59.000Z","dependencies_parsed_at":"2023-09-14T23:48:01.388Z","dependency_job_id":null,"html_url":"https://github.com/thinodium/thinodium-knex","commit_stats":null,"previous_names":["hiddentao/thinodium-knex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinodium/thinodium-knex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinodium%2Fthinodium-knex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinodium%2Fthinodium-knex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinodium%2Fthinodium-knex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinodium%2Fthinodium-knex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinodium","download_url":"https://codeload.github.com/thinodium/thinodium-knex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinodium%2Fthinodium-knex/sbom","scorecard":{"id":465986,"data":{"date":"2025-08-11","repo":{"name":"github.com/thinodium/thinodium-knex","commit":"8e50d3df078ce6b5895473f6b71cec73435b1b3b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"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":"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/12 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":"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":"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":"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":"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":"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-19T12:31:08.300Z","repository_id":152157801,"created_at":"2025-08-19T12:31:08.300Z","updated_at":"2025-08-19T12:31:08.300Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29321277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["database","knex","nodejs","odm","postgres","relational-databases","sqlite"],"created_at":"2026-02-10T23:09:27.692Z","updated_at":"2026-02-10T23:09:28.736Z","avatar_url":"https://github.com/thinodium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thinodium Knex adapter\n\n[![Build Status](https://travis-ci.org/thinodium/thinodium-knex.svg?branch=master)](http://travis-ci.org/thinodium/thinodium-knex)\n[![npm](https://img.shields.io/npm/v/thinodium-knex.svg?maxAge=2592000)](https://www.npmjs.com/package/thinodium-knex)\n[![Join the chat at https://discord.gg/bYt4tWB](https://img.shields.io/badge/discord-join%20chat-738bd7.svg?style=flat-square)](https://discord.gg/bYt4tWB)\n[![Follow on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social\u0026label=Follow\u0026maxAge=2592000)](https://twitter.com/hiddentao)\n\n\nA [Knex](http://knexjs.org/) adapter for [thinodium](https://github.com/thinodium/thinodium), allowing\nyou to connect to relational database engines supported by Knex.\n\nThis adapter will NOT create tables, relations and indices for you. Instead we\nrecommend using Knex's built-in [seeding and migration](http://knexjs.org/#Migrations)\nfunctionality to do that.\n\n**WARNING: When inserting rows the `RETURNING` clause is used to fetch the id\nof the inserted row - this is then set on the returned document. But this clause\n[only works for Postgres, MSSQL and Oracle](http://knexjs.org/#Builder-returning).\nFor other database engines do not\nrely on the id in the returned object, i.e. freshly fetch the inserted data\nmanually.**\n\n## Installation\n\n```bash\n$ npm install thinodium thinodium-knex\n```\n\n## Usage examples\n\n```js\nconst Thinodium = require('thinodium');\n\nconst db = yield Thinodium.connect('knex', {\n  /* knex configuration options - see http://knexjs.org/#Installation-client */\n});\n\n// Get a builder for the \"User\" table. The table must already exist!\nconst User = yield db.model('User');\n\n// insert a new user\nlet user = yield User.insert({\n  name: 'john'\n});\n\n// ... normal thinodium API methods available at this point\n```\n\nCheck out the [thinodium docs](https://hiddentao.github.io/thinodium) for further usage examples and API docs.\n\n## Building\n\nInstall Postgres and create the test user (use `thinodium` as the password when prompted):\n\n```bash\n$ createuser -d -l -r -s -W thinodium\n$ createdb thinodium_knex\n```\n\nOn the command-line:\n\n    $ npm install\n    $ npm test\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](https://github.com/thinodium/thinodium-knex/blob/master/CONTRIBUTING.md).\n\n## License\n\nMIT - see [LICENSE.md](https://github.com/thinodium/thinodium-knex/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinodium%2Fthinodium-knex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinodium%2Fthinodium-knex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinodium%2Fthinodium-knex/lists"}