dart-bridge / trestle

Database Gateway and ORM for Dart
MIT License
26 stars 12 forks source link

Add fromUri PostgresqlDriver factory #10

Closed chances closed 7 years ago

chances commented 7 years ago

I keep my database connection information as an environment variable, postgres URI connection string.

This change lets me easily do this:

PostgresqlDriver driver = new PostgresqlDriver.fromUri(dotenv.env['DATABASE_URL']);
emilniklas commented 7 years ago

Cool, thanks!

emilniklas commented 7 years ago

Will tag a new version when I get the time, cheers

chances commented 7 years ago

That was fast, thanks! 😄