{"id":52617,"library":"fergusstrange-embedded-postgres","title":"Embedded Postgres","description":"Package embeddedpostgres provides a way to run a real PostgreSQL database programmatically within Go tests or applications.","status":"active","version":"1.34.0","language":"go","source_language":null,"source_url":"https://github.com/fergusstrange/embedded-postgres","tags":["postgresql","testing","embedded","database"],"install":[{"cmd":"go get github.com/fergusstrange/embedded-postgres","lang":"bash","label":"Install github.com/fergusstrange/embedded-postgres"}],"dependencies":[],"imports":[{"symbol":"embeddedpostgres","correct":"github.com/fergusstrange/embedded-postgres"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/fergusstrange/embedded-postgres\"\n)\n\nfunc main() {\n\tpostgres, _ := embeddedpostgres.NewPostgres()\n\t_ = postgres.Start()\n\tdefer postgres.Stop()\n\tfmt.Println(\"PostgreSQL started on\", postgres.Port())\n}","lang":"go","description":"Start an embedded PostgreSQL server"},"warnings":[{"fix":"Set environment variables like EMBEDDED_POSTGRES_BINARY to control binary location.","message":"Embedded Postgres downloads and runs a real PostgreSQL binary; ensure the host system has compatible libraries.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'applic':19 'databas':13,23 'embed':1,22 'embeddedpostgr':4 'go':16 'packag':3 'postgr':2 'postgresql':12,20 'programmat':14 'provid':5 'real':11 'run':9 'test':17,21 'way':7 'within':15","created_at":"2026-06-15T07:02:18.497367+00:00","updated_at":"2026-06-15T07:02:18.497367+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/fergusstrange/embedded-postgres","github":"https://github.com/fergusstrange/embedded-postgres","docs":"https://pkg.go.dev/github.com/fergusstrange/embedded-postgres#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}