{"id":29197388,"url":"https://github.com/ericfrancis12/db-conn","last_synced_at":"2025-08-08T13:20:08.128Z","repository":{"id":299160402,"uuid":"994413320","full_name":"EricFrancis12/db-conn","owner":"EricFrancis12","description":"Test database connections in bulk.","archived":false,"fork":false,"pushed_at":"2025-06-15T02:27:48.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-15T03:30:54.735Z","etag":null,"topics":["database-connection","database-driver","database-utilities"],"latest_commit_sha":null,"homepage":"","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/EricFrancis12.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,"zenodo":null}},"created_at":"2025-06-01T21:59:43.000Z","updated_at":"2025-06-15T02:27:51.000Z","dependencies_parsed_at":"2025-06-15T03:31:26.696Z","dependency_job_id":"47c7367c-f316-4bfd-b61b-287c9f855df3","html_url":"https://github.com/EricFrancis12/db-conn","commit_stats":null,"previous_names":["ericfrancis12/db-conn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EricFrancis12/db-conn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricFrancis12%2Fdb-conn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricFrancis12%2Fdb-conn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricFrancis12%2Fdb-conn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricFrancis12%2Fdb-conn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricFrancis12","download_url":"https://codeload.github.com/EricFrancis12/db-conn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricFrancis12%2Fdb-conn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263091027,"owners_count":23412344,"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":["database-connection","database-driver","database-utilities"],"created_at":"2025-07-02T07:07:29.163Z","updated_at":"2025-07-02T07:07:31.985Z","avatar_url":"https://github.com/EricFrancis12.png","language":"Go","readme":"# DB Conn\n\nA Go utility to test database connection strings in parallel, with configurable driver and input file.\n\n## Features\n\n- Reads a list of database connection strings from a file, one per line (see `targets.example.txt`).\n- Connects to each database in parallel using the specified driver\n- Reports success/failure for each connection and overall success rate\n\n## Usage\n\n```bash\nmake run ARGS=\"[flags]\"\n```\n\n## Example Usage\n\n```bash\nmake run ARGS=\"-f my_targets.txt -d mysql -t 2s\"\n```\n\n## Supported Drivers (-d flag)\n\n- postgres (default)\n- mysql\n- sqlite3\n\n## AWS Lambda Deployment\n\nYou can deploy this utility as an AWS Lambda function. Follow these steps:\n\n### 1. Create a targets.txt file\n\nCreate a file called `targets.txt` at the project root, and list your connection strings on it (one per line).\n\n### 2. Build the Lambda Binary\n\nBuild a Linux executable named `bootstrap` (required name for Lambda custom runtime):\n\n```bash\nmake build_lambda\n```\n\nThis will:\n\n- Build the binary for Linux (`GOOS=linux`)\n- Output it as `bootstrap`\n- Zip it as `db-conn.zip`\n\n### 3. Upload to AWS Lambda\n\n1. Go to the AWS Lambda console.\n2. Create a new Lambda function (see image below).\n3. Upload the `db-conn.zip` file as the function code.\n\n\u003cimg src=\"https://github.com/user-attachments/assets/9bf6ef5e-7193-4e97-a591-04537aeaba19\"/\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericfrancis12%2Fdb-conn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericfrancis12%2Fdb-conn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericfrancis12%2Fdb-conn/lists"}