{"id":24564765,"url":"https://github.com/abzico/pqxx_pool","last_synced_at":"2025-04-19T20:51:30.492Z","repository":{"id":144085015,"uuid":"139899906","full_name":"abzico/pqxx_pool","owner":"abzico","description":"Demonstration of connection pool for libpqxx. Port from https://github.com/borisovs/pool to work with libpqxx. Tested on Ubuntu 16.04.","archived":false,"fork":false,"pushed_at":"2018-07-05T22:41:52.000Z","size":6,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T13:21:17.272Z","etag":null,"topics":["connection-pool","cpp","cxx","libpqxx","pg","postgres","postgresdb"],"latest_commit_sha":null,"homepage":"","language":"C++","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/abzico.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-05T20:58:13.000Z","updated_at":"2024-06-09T21:17:18.000Z","dependencies_parsed_at":"2023-05-26T09:30:37.423Z","dependency_job_id":null,"html_url":"https://github.com/abzico/pqxx_pool","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/abzico%2Fpqxx_pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fpqxx_pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fpqxx_pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abzico%2Fpqxx_pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abzico","download_url":"https://codeload.github.com/abzico/pqxx_pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249797643,"owners_count":21326839,"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":["connection-pool","cpp","cxx","libpqxx","pg","postgres","postgresdb"],"created_at":"2025-01-23T11:29:28.597Z","updated_at":"2025-04-19T20:51:30.480Z","avatar_url":"https://github.com/abzico.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pqxx_pool\n\nThis project works on top of great work by borisovs (https://github.com/borisovs/pool) which directly use libpq's API via `libpq-fe.h` but\nnow this project call APIs through [libpqxx](https://github.com/jtv/libpqxx).\n\n# Tehnical\n\nThe implementation focuses on having connection pool which its number of available connection is set via `POOL_SIZE` in `PGPool.h` file. In `main.cpp`, it simulates creating a new 10 threads holding of each available connection from the pool to execute DB related task. Ideally, the concurrency model at this point is up to your app implementation. See more detail for possible ways at http://pqxx.org/development/libpqxx/wiki/Threading .\n\n# What to do?\n\nCreate a database namely `demo` first by log in to your postgres console, and execute `create database demo`.\nThen execute SQL statements from provided file (pool.sql) to insert necessary tables into such database as follows\n\n`psql -U postgres demo \u003c pool.sql`\n\nThen compile, link and make executable file via the following\n\n`make`\n\nIt will produce an executable called `pool` at the same directory.\n\nFinally run with\n\n`PGDATABASE=demo PGUSER=postgres PGPASSWORD=\"...your password if any...\" ./pool`\n\n# License\n\nMIT, Abzi.co\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabzico%2Fpqxx_pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabzico%2Fpqxx_pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabzico%2Fpqxx_pool/lists"}