{"id":19441261,"url":"https://github.com/theseus-rs/postgresql-embedded","last_synced_at":"2026-06-10T04:00:51.639Z","repository":{"id":221979379,"uuid":"753277327","full_name":"theseus-rs/postgresql-embedded","owner":"theseus-rs","description":"Embed PostgreSQL database","archived":false,"fork":false,"pushed_at":"2026-06-09T15:20:31.000Z","size":4063,"stargazers_count":371,"open_issues_count":5,"forks_count":33,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-09T16:28:14.663Z","etag":null,"topics":["bundle","database","embedded","install","installer","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/theseus-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"brianheineman"}},"created_at":"2024-02-05T20:04:41.000Z","updated_at":"2026-06-09T15:29:25.000Z","dependencies_parsed_at":"2024-02-11T15:32:01.206Z","dependency_job_id":"2b93e940-a798-4149-a2fb-19cb0b301665","html_url":"https://github.com/theseus-rs/postgresql-embedded","commit_stats":null,"previous_names":["theseus-rs/postgresql-embedded"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/theseus-rs/postgresql-embedded","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseus-rs%2Fpostgresql-embedded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseus-rs%2Fpostgresql-embedded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseus-rs%2Fpostgresql-embedded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseus-rs%2Fpostgresql-embedded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theseus-rs","download_url":"https://codeload.github.com/theseus-rs/postgresql-embedded/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseus-rs%2Fpostgresql-embedded/sbom","scorecard":{"id":394115,"data":{"date":"2024-03-16","repo":{"name":"github.com/theseus-rs/postgresql-embedded","commit":"68aea10ed7d8d9b7deb19d2ba34ea1c92871fbac"},"scorecard":{"version":"v4.10.2","commit":"376f465c111c39c6a5ad7408e8896cd790cb5219"},"score":5.9,"checks":[{"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/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#binary-artifacts"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#branch-protection"}},{"name":"CI-Tests","score":10,"reason":"9 out of 9 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#ci-tests"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: in_progress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":0,"reason":"0 out of last 17 changesets reviewed before merge -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#code-review"}},{"name":"Contributors","score":0,"reason":"0 different organizations found -- score normalized to 0","details":["Info: contributors work for "],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#contributors"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#dangerous-workflow"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: Dependabot detected: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#dependency-update-tool"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":null,"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: License file found in expected location: LICENSE-APACHE:1","Info: FSF or OSI recognized license: LICENSE-APACHE:1"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#license"}},{"name":"Maintained","score":0,"reason":"repo was created 39 days ago, not enough maintenance history","details":["Warn: repo was created in the last 90 days (Created at: 2024-02-05T20:04:41Z), please review its contents carefully"],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"no published package detected","details":["Warn: no GitHub 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/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:124: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:126: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:131: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/checks.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:96: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/clear-caches.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/clear-caches.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-benchmarks.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/pr-benchmarks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-benchmarks.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/pr-benchmarks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-benchmarks.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/pr-benchmarks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-benchmarks.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/pr-benchmarks.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-labeler.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/pr-labeler.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-drafter.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/release-drafter.yml/main?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:2: pin your Docker image by updating mcr.microsoft.com/vscode/devcontainers/rust to mcr.microsoft.com/vscode/devcontainers/rust@sha256:215d60101fe7eab9373675e222e19396caee7a4acaa903610b6e352fde07c101","Info: no insecure (not pinned by hash) dependency downloads found in Dockerfiles","Info: no insecure (not pinned by hash) dependency downloads found in shell scripts"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool","Warn: CodeQL tool not detected"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#sast"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: Found linked content in security policy: SECURITY.md","Info: Found text in security policy: SECURITY.md","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md","Info: security policy detected in current repo: SECURITY.md"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":["Warn: no GitHub releases found"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#signed-releases"}},{"name":"Token-Permissions","score":10,"reason":"tokens are read-only in GitHub workflows","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/checks.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/clear-caches.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/pr-benchmarks.yml:8","Info: topLevel 'contents' permission set to 'read': .github/workflows/pr-labeler.yml:8","Info: topLevel 'contents' permission set to 'read': .github/workflows/release-drafter.yml:15","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/release-drafter.yml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-drafter.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/theseus-rs/postgresql-embedded/release-drafter.yml/main?enable=permissions","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#token-permissions"}},{"name":"Vulnerabilities","score":-1,"reason":"internal error: vulnerabilitiesClient.ListUnfixedVulnerabilities: osvscanner.DoScan: vulnerabilities found","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/376f465c111c39c6a5ad7408e8896cd790cb5219/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T18:32:44.277Z","repository_id":221979379,"created_at":"2025-08-18T18:32:44.277Z","updated_at":"2025-08-18T18:32:44.277Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34136112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["bundle","database","embedded","install","installer","postgres","postgresql"],"created_at":"2024-11-10T15:34:53.077Z","updated_at":"2026-06-10T04:00:51.592Z","avatar_url":"https://github.com/theseus-rs.png","language":"Rust","funding_links":["https://github.com/sponsors/brianheineman"],"categories":["Rust"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"250\" height=\"250\" src=\"images/logo.png\"\u003e\u003c/p\u003e\n\n# PostgreSQL Embedded\n\n[![ci](https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml)\n[![Documentation](https://docs.rs/postgresql_embedded/badge.svg)](https://docs.rs/postgresql_embedded)\n[![Code Coverage](https://codecov.io/gh/theseus-rs/postgresql-embedded/branch/main/graph/badge.svg)](https://codecov.io/gh/theseus-rs/postgresql-embedded)\n[![Benchmarks](https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-6ec241)](https://bencher.dev/perf/theseus-rs-postgresql-embedded)\n[![Latest version](https://img.shields.io/crates/v/postgresql_embedded.svg)](https://crates.io/crates/postgresql_embedded)\n[![License](https://img.shields.io/crates/l/postgresql_embedded)](https://github.com/theseus-rs/postgresql-embedded#license)\n[![Semantic Versioning](https://img.shields.io/badge/%E2%9A%99%EF%B8%8F_SemVer-2.0.0-blue)](https://semver.org/spec/v2.0.0.html)\n\nInstall and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be\nbundled with your application, or downloaded on demand.\n\nThis library provides an embedded-like experience for PostgreSQL similar to what you would have with\nSQLite. This is accomplished by downloading and installing PostgreSQL during runtime. There is\nalso a \"bundled\" feature that when enabled, will download the PostgreSQL installation archive at\ncompile time, include it in your binary and install from the binary version at runtime.\nIn either case, PostgreSQL will run in a separate process space.\n\n## Features\n\n- installing and running PostgreSQL\n- running PostgreSQL on ephemeral ports\n- Unix socket support\n- async and blocking API\n- bundling the PostgreSQL archive in an executable\n- semantic version resolution\n- ability to configure PostgreSQL startup options\n- settings builder for fluent configuration\n- URL based configuration\n- choice of native-tls or rustls\n- support for installing PostgreSQL extensions\n\n## Getting Started\n\n### Example\n\n```rust\nuse postgresql_embedded::{PostgreSQL, Result};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let mut postgresql = PostgreSQL::default();\n    postgresql.setup().await?;\n    postgresql.start().await?;\n\n    let database_name = \"test\";\n    postgresql.create_database(database_name).await?;\n    postgresql.database_exists(database_name).await?;\n    postgresql.drop_database(database_name).await?;\n\n    postgresql.stop().await\n}\n```\n\n## Notes\n\nSupports using PostgreSQL binaries from:\n\n* [theseus-rs/postgresql-binaries](https://github.com/theseus-rs/postgresql-binaries) (default)\n* [zonkyio/embedded-postgres-binaries](https://github.com/zonkyio/embedded-postgres-binaries)\n\n## Safety\n\nThese crates use `#![forbid(unsafe_code)]` to ensure everything is implemented in 100% safe Rust.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\nPostgreSQL is covered under [The PostgreSQL License](https://opensource.org/licenses/postgresql).\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as\ndefined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n## Prior Art\n\nProjects that inspired this one:\n\n* [zonkyio/embedded-postgres-binaries](https://github.com/zonkyio/embedded-postgres-binaries)\n* [faokunega/pg-embed](https://github.com/faokunega/pg-embed)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheseus-rs%2Fpostgresql-embedded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheseus-rs%2Fpostgresql-embedded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheseus-rs%2Fpostgresql-embedded/lists"}