https://github.com/juanitofatas/connection_url_resolver
Resolve connection URL into Hash.
https://github.com/juanitofatas/connection_url_resolver
connection mysql postgresql resolver sqlite url
Last synced: 3 months ago
JSON representation
Resolve connection URL into Hash.
- Host: GitHub
- URL: https://github.com/juanitofatas/connection_url_resolver
- Owner: JuanitoFatas
- License: mit
- Created: 2018-02-04T10:25:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T17:34:40.000Z (over 7 years ago)
- Last Synced: 2025-04-01T20:19:41.374Z (3 months ago)
- Topics: connection, mysql, postgresql, resolver, sqlite, url
- Language: Ruby
- Homepage: https://github.com/JuanitoFatas/connection_url_resolver
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ConnectionUrlResolver
[](https://travis-ci.org/JuanitoFatas/connection_url_resolver)
Resolve connection URL into Hash.
## Installation
Add this line to your application's Gemfile:
```ruby
gem "connection_url_resolver"
```And then execute:
$ bundle
Or install it yourself as:
$ gem install connection_url_resolver
## Usage
```ruby
url = "mysql2://user:password@localhost:3306/app_dev"
ConnectionUrlResolver.new(url).to_hash
# =>
{
"adapter" => "mysql2",
"username" => "user",
"password" => "password",
"port" => "3306",
"database" => "app_dev",
"host" => "localhost"
}
```## License, Contributor's Guidelines
- [MIT license][mit]
- [Moya Contributors Guidelines][moya] which TLDR: means we give out push access easily and often.[mit]: https://opensource.org/licenses/MIT
[moya]: https://github.com/Moya/contributors