cruisercoder / dstddb

A proposed standard database interface and library for D
MIT License
28 stars 10 forks source link

How to specify login and password? #11

Open bubnenkoff opened 8 years ago

bubnenkoff commented 8 years ago

How to specify login and pass for connection to DB?

cruisercoder commented 8 years ago

Those can be specified in the URI (see example below). There is also a way to use configuration files but it's not documented yet.

auto db = createDatabase("mysql://SERVER/DB?username=UN&password=PW); auto con = db.connection();

bubnenkoff commented 8 years ago

Please, add this example to readme

вторник, 26 апреля 2016 г. пользователь Erik Smith написал:

Those can be specified in the URI (see example below). There is also a way to use configuration files but it's not documented yet.

auto db = createDatabase("mysql://SERVER/DB?username=UN&password=PW); auto con = db.connection();

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/cruisercoder/dstddb/issues/11#issuecomment-214749023