amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.
Other
359 stars 63 forks source link

Change connection string to URI #19

Closed kelunik closed 6 years ago

kelunik commented 8 years ago

I think it would be good to use URIs to configure connections, e.g. mysql://user:password@host:port/database?timeout=abc. URIs provide everything we need: User + password on host / port, a database name as path and options via URL parameters.

DaveRandom commented 8 years ago

worth noting that pgsql (libpq itself) already does this

kelunik commented 8 years ago

Redis does this as well, I think, at least I planned it.