Credential.connectionString

struct Credential
@property
string
connectionString
(
)

Examples

1 auto cred = Credential().host("localhost");
2 assert(cred.connectionString == "host=localhost");
3 
4 cred = Credential().host("127.0.0.1").port(3306);
5 assert(cred.connectionString == "host=127.0.0.1;port=3306");
6 
7 cred = Credential().host("localhost").user("testuser").db("SchemaXY");
8 assert(cred.connectionString == "host=localhost;user=testuser;db=SchemaXY");
9 assert(cred.host == "localhost");
10 

Meta