Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Conversation

@bhush9
Copy link

@bhush9 bhush9 commented Nov 30, 2011

As many users are coming across the heroku but many of them are upgrading to PostgreSQL from MySQL so here is sample demo for connecting to database of PostgreSQL. Please pull this.

This example get PostgreSQL credentials from the DATABASE_URL environment variable and phrase it and return string that can be used to connect to PostgreSQL server.. This is for new users of heroku.

pg_connection_string_from_database_url() function will phrase URL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant