Connection string generator
A VERY simple crate to generate database connection strings programmatically.
Currently supported databases
- PostgreSQL
- Microsoft SQL Server
Examples
PostgreSQL
let conn_string = new
.set_username_and_password
.set_host_with_port
.set_database_name
.set_connect_timeout;
println!;
Microsoft SQL Server
let conn_string = new
.set_username_and_password
.set_host_with_default_port
.set_database_name
.set_connect_timeout
.enable_encryption_and_trust_server_certificate;
println!;