This little library helps you finding, parsing, and using entries in .pgpass files.
entry = Pgpass.match(database: 'sample_db', user: 'manveru') DB = Sequel.connect(entry.to_url)
MIT all the way, see the LICENSE file.