{"id":13481372,"url":"https://github.com/finagle/finagle-postgres","last_synced_at":"2025-10-12T03:20:11.803Z","repository":{"id":28451336,"uuid":"31966861","full_name":"finagle/finagle-postgres","owner":"finagle","description":"PostgreSQL protocol support for Finagle","archived":false,"fork":false,"pushed_at":"2023-09-05T22:07:32.000Z","size":1227,"stargazers_count":81,"open_issues_count":26,"forks_count":38,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-07T02:58:55.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finagle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2015-03-10T16:01:08.000Z","updated_at":"2024-05-30T13:36:54.000Z","dependencies_parsed_at":"2024-01-05T21:57:09.346Z","dependency_job_id":null,"html_url":"https://github.com/finagle/finagle-postgres","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/finagle/finagle-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finagle%2Ffinagle-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finagle%2Ffinagle-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finagle%2Ffinagle-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finagle%2Ffinagle-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finagle","download_url":"https://codeload.github.com/finagle/finagle-postgres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finagle%2Ffinagle-postgres/sbom","scorecard":{"id":399866,"data":{"date":"2025-08-11","repo":{"name":"github.com/finagle/finagle-postgres","commit":"8a19b726ff1e5842064e6744445b22db8d2106ce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":7,"reason":"Found 12/16 approved changesets -- score normalized to 7","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":"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":"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":"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":"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":"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:0","Info: FSF or OSI recognized license: Apache 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":"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 27 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:50:57.426Z","repository_id":28451336,"created_at":"2025-08-18T19:50:57.426Z","updated_at":"2025-08-18T19:50:57.426Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007022,"owners_count":26084226,"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-10-11T02:00:06.511Z","response_time":55,"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-07-31T17:00:51.301Z","updated_at":"2025-10-12T03:20:11.739Z","avatar_url":"https://github.com/finagle.png","language":"Scala","readme":"# Finagle Postgres\n[![Build status](https://img.shields.io/travis/finagle/finagle-postgres/master.svg)](http://travis-ci.org/finagle/finagle-postgres)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.finagle/finagle-postgres_2.12.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.finagle/finagle-postgres_2.12)\n[![Join the chat at https://gitter.im/finagle/finagle-postgres](https://badges.gitter.im/finagle/finagle-postgres.svg)](https://gitter.im/finagle/finagle-postgres?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nThis library provides [PostgreSQL][postgres] database support for\n[Finagle][finagle].\n\n[postgres]: https://www.postgresql.org/\n[finagle]: https://github.com/twitter/finagle\n[mairbek]: https://github.com/mairbek/finagle-postgres\n[thefactory]: https://github.com/thefactory/finagle-postgres\n[vkostyukov]: https://github.com/vkostyukov/finagle-postgres\n\n## Documentation\nSee [the GitHub Pages](https://finagle.github.io/finagle-postgres)\n\n## Using the Postgres client\n\n### Installation\n\nFinagle Postgres is published on Maven Central. Use the following _sbt_ snippet to bring it as a\ndependency.\n\n```scala\nlibraryDependencies ++= Seq(\n  \"io.github.finagle\" %% \"finagle-postgres\" % \"0.12.0\"\n)\n```\n\n### Connecting to the DB\n\n```scala\nval client = Postgres.Client()\n  .withCredentials(\"user\", Some(\"password\"))\n  .database(\"dbname\")\n  .withSessionPool.maxSize(1) //optional; default is unbounded\n  .withBinaryResults(true)\n  .withBinaryParams(true)\n  .withTransport.tls(\"host\")\n  .newRichClient(\"host:port\")\n```\n\n### Selecting with simple query\n\n```scala\nval f = client.select(\"select * from users\") {row =\u003e\n    User(row.getString(\"email\"), row.getString(\"name\"))\n}\nlogger.debug(\"Responded \" + Await.result(f))\n```\n\n### Integration Tests\n\n`sbt test` won't run integration tests by default. In order to make it easier for development, a database environment is provided via Docker.\nAfter installing [Docker](https://docs.docker.com/v17.09/engine/installation/) and [docker compose](https://docs.docker.com/compose/install/), run:\n\n```bash\ndocker-compose up -d\n```\n\nA few environment variables need to be provided as well:\n\n```bash\nexport PG_HOST_PORT=localhost:5432 PG_DBNAME=finagle_postgres_test PG_USER=postgres\n```\n\nWith the database and variables in place, all tests will be executed. More details in [IntegrationSpec](https://github.com/finagle/finagle-postgres/blob/master/src/test/scala/com/twitter/finagle/postgres/integration/IntegrationSpec.scala#L19-L32)\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md)\n\n## Contributors\n* [Mairbek Khadikov][mairbek] (project creator)\n* [The Factory][thefactory]\n* [Vladimir Kostyukov][vkostyukov]\n* [Jeremy Smith](https://github.com/jeremyrsmith)\n* [Leon Maia](https://github.com/leonmaia) (current maintainer)\n\n## License\n\nLicensed under the **[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)** (the \"License\");\nyou may not use this software except in compliance with the License.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":["Database","Table of Contents"],"sub_categories":["Database"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinagle%2Ffinagle-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinagle%2Ffinagle-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinagle%2Ffinagle-postgres/lists"}