{"id":27022926,"url":"https://github.com/twihno/connection-string-generator","last_synced_at":"2025-04-04T20:50:20.137Z","repository":{"id":253821040,"uuid":"844669700","full_name":"twihno/connection-string-generator","owner":"twihno","description":"A VERY simple rust crate to generate database connection strings programmatically","archived":false,"fork":false,"pushed_at":"2024-08-20T14:19:53.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T06:17:20.912Z","etag":null,"topics":["connection-string","database","database-connection"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/connection_string_generator","language":"Rust","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/twihno.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":"2024-08-19T18:24:32.000Z","updated_at":"2024-08-20T14:18:25.000Z","dependencies_parsed_at":"2024-08-19T20:05:06.599Z","dependency_job_id":"cf07a6e7-2889-4a94-8898-9a8d0fbae0a0","html_url":"https://github.com/twihno/connection-string-generator","commit_stats":null,"previous_names":["twihno/connection-string-generator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twihno%2Fconnection-string-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twihno%2Fconnection-string-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twihno%2Fconnection-string-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twihno%2Fconnection-string-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twihno","download_url":"https://codeload.github.com/twihno/connection-string-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246730273,"owners_count":20824396,"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-string","database","database-connection"],"created_at":"2025-04-04T20:50:19.587Z","updated_at":"2025-04-04T20:50:20.130Z","avatar_url":"https://github.com/twihno.png","language":"Rust","readme":"# Connection string generator\n\nA VERY simple crate to generate database connection strings programmatically.\n\n## Currently supported databases\n\n- PostgreSQL\n- Microsoft SQL Server\n\n## Examples\n\n### PostgreSQL\n\n```rust\nlet conn_string = PostgresConnectionString::new()\n    .set_username_and_password(\"user\", \"password\")\n    .set_host_with_port(\"localhost\", 5432)\n    .set_database_name(\"db_name\")\n    .set_connect_timeout(30);\n\nprintln!(\"{conn_string}\");\n```\n\n### Microsoft SQL Server\n\n```rust\nlet conn_string = SqlServerConnectionString::new()\n    .set_username_and_password(\"user\", \"password\")\n    .set_host_with_default_port(\"sql.test.com\")\n    .set_database_name(\"db_name\")\n    .set_connect_timeout(30)\n    .enable_encryption_and_trust_server_certificate();\n\nprintln!(\"{conn_string}\");\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwihno%2Fconnection-string-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwihno%2Fconnection-string-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwihno%2Fconnection-string-generator/lists"}