{"id":21762155,"url":"https://github.com/daniilty/pgxquery","last_synced_at":"2026-05-10T00:34:36.617Z","repository":{"id":37450679,"uuid":"505817413","full_name":"daniilty/pgxquery","owner":"daniilty","description":"simple library for generating pgx queries from go struct","archived":false,"fork":false,"pushed_at":"2022-06-21T19:49:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T01:20:29.790Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniilty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-21T11:39:57.000Z","updated_at":"2022-06-21T11:42:14.000Z","dependencies_parsed_at":"2022-08-19T09:11:22.243Z","dependency_job_id":null,"html_url":"https://github.com/daniilty/pgxquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniilty%2Fpgxquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniilty%2Fpgxquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniilty%2Fpgxquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniilty%2Fpgxquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniilty","download_url":"https://codeload.github.com/daniilty/pgxquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739944,"owners_count":20501990,"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","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-11-26T12:11:11.886Z","updated_at":"2026-05-10T00:34:36.584Z","avatar_url":"https://github.com/daniilty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pqxquery library\n\n## Add to your project\n\n```bash\n$ go get github.com/daniilty/pgxquery\n```\n## Usage\n\n```golang\ntype user struct {\n\tpgxquery.TableName `db:\"users\"` // set here the name of related table\n\n\tid int `db:\"id,primarykey\"` // primarykey tag used for updating by in update query\n\tname string `db:\"name,omitempty\"` // omitempty is used for update queries(field will be omitted if zero value)\n\temail string `db:\"email\"`\n}\n\nfunc insertUsers(...) {\n\tq, _ := pgxquery.GenerateNamedUpdate(\u0026user{\n\t\tid: 1,\n\t\temail: \"pablo@gmail.com\",\n\t})\n\n\t//will result in:\n\t//update users set email=:email where id=:id;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniilty%2Fpgxquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniilty%2Fpgxquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniilty%2Fpgxquery/lists"}