{"id":27874764,"url":"https://github.com/camerodev/psql-wire","last_synced_at":"2025-08-25T00:06:39.582Z","repository":{"id":231525130,"uuid":"772762644","full_name":"camerodev/psql-wire","owner":"camerodev","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-15T21:05:15.000Z","size":291,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T01:43:12.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/camerodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T21:05:10.000Z","updated_at":"2024-03-29T17:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b77b25ac-3b53-4cb8-864a-04527c937076","html_url":"https://github.com/camerodev/psql-wire","commit_stats":null,"previous_names":["slickcharmer/psql-wire","camerodev/psql-wire"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/camerodev/psql-wire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camerodev%2Fpsql-wire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camerodev%2Fpsql-wire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camerodev%2Fpsql-wire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camerodev%2Fpsql-wire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camerodev","download_url":"https://codeload.github.com/camerodev/psql-wire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camerodev%2Fpsql-wire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271983226,"owners_count":24853809,"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-08-24T02:00:11.135Z","response_time":111,"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":"2025-05-05T01:38:08.796Z","updated_at":"2025-08-25T00:06:39.483Z","avatar_url":"https://github.com/camerodev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSQL wire protocol 🔌\n\n[![CI](https://github.com/jeroenrinzema/psql-wire/actions/workflows/build.yaml/badge.svg)](https://github.com/jeroenrinzema/psql-wire/actions/workflows/build.yaml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/jeroenrinzema/psql-wire.svg)](https://pkg.go.dev/github.com/jeroenrinzema/psql-wire) [![Latest release](https://img.shields.io/github/release/jeroenrinzema/psql-wire.svg)](https://github.com/jeroenrinzema/psql-wire/releases) [![Go Report Card](https://goreportcard.com/badge/github.com/jeroenrinzema/psql-wire)](https://goreportcard.com/report/github.com/jeroenrinzema/psql-wire)\n\nA pure Go [PostgreSQL](https://www.postgresql.org/) server wire protocol implementation.\nBuild your own PostgreSQL server within a few lines of code.\nThis project attempts to make it as straight forward as possible to set-up and configure your own PSQL server.\nFeel free to check out the [examples](https://github.com/jeroenrinzema/psql-wire/tree/main/examples) directory for various ways on how to configure/set-up your own server.\n\n\u003e 🚧 This project does not include a PSQL parser. Please check out other projects such as [auxten/postgresql-parser](https://github.com/auxten/postgresql-parser) to parse PSQL SQL queries.\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\twire \"github.com/jeroenrinzema/psql-wire\"\n)\n\nfunc main() {\n\twire.ListenAndServe(\"127.0.0.1:5432\", handler)\n}\n\nfunc handler(ctx context.Context, query string) (wire.PreparedStatementFn, []oid.Oid, wire.Columns, error) {\n\tfmt.Println(query)\n\n\tstatement := func(ctx context.Context, writer wire.DataWriter, parameters []string) error {\n\t\treturn writer.Complete(\"OK\")\n\t}\n\n\treturn statement, nil, nil, nil\n}\n```\n\n---\n\n## Contributing\n\nThank you for your interest in contributing to psql-wire!\nCheck out the open projects and/or issues and feel free to join any ongoing discussion.\nFeel free to checkout the [open TODO's](https://github.com/jeroenrinzema/psql-wire/issues?q=is%3Aissue+is%3Aopen+label%3Atodo) within the project.\n\nEveryone is welcome to contribute, whether it's in the form of code, documentation, bug reports, feature requests, or anything else. We encourage you to experiment with the project and make contributions to help evolve it to meet your needs!\n\nSee the [contributing guide](https://github.com/jeroenrinzema/psql-wire/blob/main/CONTRIBUTING.md) for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamerodev%2Fpsql-wire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamerodev%2Fpsql-wire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamerodev%2Fpsql-wire/lists"}