0.02
No release in over a year
A parser for PostgreSQL DSNs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.0
>= 0.21.2
 Project Readme

PG::DSNParser

Gem Version CI Code Climate Test Coverage

A parser for PostgreSQL DSNs

Installation

Add this line to your application's Gemfile:

gem 'pg-dsn_parser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pg-dsn_parser

Usage

require 'pg/dsn_parser'

parser = PG::DSNParser.new

parser.parse("host=localhost user=username dbname='postgres' port = 5432")
# => {:host=>"localhost", :user=>"username", :dbname=>"postgres", :port=>"5432"}

License

The gem is available as open source under the terms of the Apache License 2.0.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ManageIQ/pg-dsn_parser.