{"id":45322422,"url":"https://github.com/filerjs/filer-sql","last_synced_at":"2026-02-21T08:18:24.272Z","repository":{"id":21671815,"uuid":"24992825","full_name":"filerjs/filer-sql","owner":"filerjs","description":"Support for MySQL, MariaDB, SQLite or PostgreSQL Filer providers","archived":false,"fork":false,"pushed_at":"2014-11-25T16:32:01.000Z","size":182,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-09T06:23:30.277Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filerjs.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}},"created_at":"2014-10-09T14:28:18.000Z","updated_at":"2022-02-09T08:19:49.000Z","dependencies_parsed_at":"2022-08-17T21:10:38.432Z","dependency_job_id":null,"html_url":"https://github.com/filerjs/filer-sql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/filerjs/filer-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filerjs%2Ffiler-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filerjs%2Ffiler-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filerjs%2Ffiler-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filerjs%2Ffiler-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filerjs","download_url":"https://codeload.github.com/filerjs/filer-sql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filerjs%2Ffiler-sql/sbom","scorecard":{"id":399497,"data":{"date":"2025-08-11","repo":{"name":"github.com/filerjs/filer-sql","commit":"ede2827546411e3e26ce70984e011ebb3c376354"},"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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: Mozilla Public License 2.0: 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 14 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-18T19:47:18.273Z","repository_id":21671815,"created_at":"2025-08-18T19:47:18.274Z","updated_at":"2025-08-18T19:47:18.274Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29677225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"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":[],"created_at":"2026-02-21T08:18:23.680Z","updated_at":"2026-02-21T08:18:24.264Z","avatar_url":"https://github.com/filerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"filer-sql\n=========\n\nSupport for MySQL, MariaDB, SQLite or PostgreSQL Filer providers.\n\n### Usage\n\nThe `SQLProvider` can be used with Filer on node.js (i.e., this won't work in\nbrowser) like so:\n\n```js\n// Option 1 - connecting with a connection URL\nvar provider1 = new SQLProvider({\n  // The db type to use, see below for other options\n  type: SQLProvider.MYSQL,\n\n  // A MySQL connection string\n  url: 'mysql://user:pass@example.com:9821/dbname',\n\n  // A unique string to identify this user's filesystem (e.g., username)\n  user: 'something-unique'\n});\n\n// Option 2 - connecting with separate db options\nvar provider2 = new SQLProvider({\n  // The db type to use, see below for other options\n  type: SQLProvider.MYSQL,\n\n  // If you want SQL debug logging, pass a logging function\n  //logging: console.log,\n\n  // A unique string to identify this user's filesystem (e.g., username)\n  user: 'something-unique',\n\n  // Database options\n  db: {\n    // Name of Database to use, defaults to 'filer'\n    name: \"name\",\n    // DB authentication info, if necessary\n    username: \"username\",\n    password: \"password\"\n  }\n});\n\nvar fs = new Filer.FileSystem({provider: provider2});\n```\n\n### Database Types\n\nThe `type` of database can be one of:\n\n* SQLProvider.MYSQL\n* SQLProvider.SQLITE\n* SQLProvider.POSTGRES\n* SQLProvider.MARIADB\n\nNOTE: some database types require you to pre-create your database. The default\ndatabase name is `filer` unless you specify something else.\n\n### Database Options\n\nIf you want to pass extra options to `Sequelize`, add them to the options object.\nSee the list of [valid options](http://sequelizejs.com/docs/1.7.8/usage#options).\n\n### Database Schema\n\nThe database will have a single table, named `filer_data` with the following columns:\n\n|Name|Type                  |Details                                                           |\n-----|----------------------|------------------------------------------------------------------|\n|user|STRING(20) Primary Key|Unique username for this user's filesystem                        |\n|key |STRING(36) Primary Key|Filer Node ID's of the form '00000000-0000-0000-0000-000000000000'|\n|data|BLOB                  |binary data with JSON stored as Object-\u003eJSON-\u003eBuffer(utf8))       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilerjs%2Ffiler-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilerjs%2Ffiler-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilerjs%2Ffiler-sql/lists"}