Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 20 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T17:34:40.000Z (almost 7 years ago)
- Last Synced: 2024-04-24T03:23:21.075Z (7 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: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ConnectionUrlResolver
[![Build Status](https://travis-ci.org/JuanitoFatas/connection_url_resolver.svg?branch=master)](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