Grinnz / Mojo-SQLite

Mojo::SQLite - A tiny Mojolicious wrapper for SQLite
https://metacpan.org/pod/Mojo::SQLite
Other
27 stars 12 forks source link

Question: Why do you use URI instead of Mojo::URL #4

Closed kberov closed 9 years ago

kberov commented 9 years ago

Isn't Mojo::URL capable to parse the accepted convention for database connection in Mojo::AnyDatabaseHere world?

Grinnz commented 9 years ago

URI is used because of URI::file's capability to translate local filesystem paths (such as from Windows and OS/2) into URL format; Mojo::URL does not implement all of these system-specific formats and I wouldn't expect it to. URI has no dependencies which is a bonus. I used URI in the rest of the dist (such as parsing and forming the connection URI) to be consistent.

kberov commented 9 years ago

Thanks! And thanks for implementing this module too!