{"id":18221668,"url":"https://github.com/miguelpragier/pgkebab","last_synced_at":"2025-08-13T18:38:15.725Z","repository":{"id":56376953,"uuid":"257370448","full_name":"miguelpragier/pgkebab","owner":"miguelpragier","description":"Golang wrapper over PostgreSQL driver","archived":false,"fork":false,"pushed_at":"2020-11-10T17:27:27.000Z","size":52,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T02:35:16.965Z","etag":null,"topics":["go","golang","helper","postgresql","pq","sql","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miguelpragier.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":"2020-04-20T18:30:48.000Z","updated_at":"2023-03-21T10:39:13.000Z","dependencies_parsed_at":"2022-08-15T17:40:15.025Z","dependency_job_id":null,"html_url":"https://github.com/miguelpragier/pgkebab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miguelpragier/pgkebab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelpragier%2Fpgkebab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelpragier%2Fpgkebab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelpragier%2Fpgkebab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelpragier%2Fpgkebab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miguelpragier","download_url":"https://codeload.github.com/miguelpragier/pgkebab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguelpragier%2Fpgkebab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270290964,"owners_count":24559468,"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-13T02:00:09.904Z","response_time":66,"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":["go","golang","helper","postgresql","pq","sql","wrapper"],"created_at":"2024-11-03T22:03:47.822Z","updated_at":"2025-08-13T18:38:15.683Z","avatar_url":"https://github.com/miguelpragier.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg) ![GitHub](https://img.shields.io/badge/goDoc-Yes!-blue.svg) \n[![Go Report Card](https://goreportcard.com/badge/github.com/miguelpragier/pgkebab?update)](https://goreportcard.com/report/github.com/miguelpragier/pgkebab) \n![Go Version](https://img.shields.io/badge/GO%20version-%3E%3D1.13-blue)\n\n# PGKebab\n### GOLang PostgreSQL Helper Over [PQ](https://github.com/lib/pq/)\n##### Makes PostgreSQL handling as easy and simple as GOlang\n    Replace heavy ORMs and dense routines with simple SQL queries\n---\n![PGKebab](./etc/img/pgkebab.png \"PGKebab\")\n\u003cbr\u003e\n\u003cbr\u003e\n\u003c!-- [![Go Report Card](https://goreportcard.com/badge/github.com/miguelpragier/pgkebab )](https://goreportcard.com/report/github.com/miguelpragier/pgkebab) --\u003e\n\n##### Simple Sample\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/miguelpragier/pgkebab\"\n\t\"log\"\n)\n\nfunc main() {\n\tconst (\n\t\tconnectionTimeout                  = 10\n\t\texecutiontionTimeout               = 10\n\t\tconnectionMaxAttempts              = 5\n\t\tconnectionMaxMinutesRetrying       = 5\n\t\tsecondsBetweenReconnectionAttempts = 10\n\t\tdebugLogPrint                      = true\n\t)\n\n\tvar (\n\t\tcs         = pgkebab.ConnStringEnvVar(\"{YOURAPPCONNECTIONSTRING}\")\n\t\topts       = pgkebab.Options(cs, connectionTimeout, executiontionTimeout, connectionMaxAttempts, connectionMaxMinutesRetrying, secondsBetweenReconnectionAttempts, debugLogPrint)\n\t\tcustomerID = 1\n\t)\n\n\tdb, errcnx := pgkebab.NewConnected(opts)\n\n\tif errcnx != nil {\n\t\tlog.Fatal(errcnx)\n\t}\n\n\tif row, err := db.GetOne(\"SELECT name, status_id FROM customers WHERE id=$1\", customerID); err != nil {\n\t\tlog.Fatal(err)\n\t} else {\n\t\tfmt.Println(\"the customer\", row.String(\"name\"), \"has status\", row.Int64(\"status_id\"))\n\t}\n\n\tif n, err := db.GetCount(\"customers\"); err != nil {\n\t\tlog.Fatal(err)\n\t} else {\n\t\tfmt.Println(\"table customer counts\", n, \"rows\")\n\t}\n}\n```\n##### Dependencies:\n[pq - Pure Go Postgres driver for database/sql](https://github.com/lib/pq)\n\u003cbr\u003e\n\n---\n\u003c!-- ![Requires.io](https://img.shields.io/requires/github.com/lib/pq) --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelpragier%2Fpgkebab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiguelpragier%2Fpgkebab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelpragier%2Fpgkebab/lists"}