blue-jay / blueprint

Blueprint for your next web application in Go.
https://blue-jay.github.io/
MIT License
482 stars 77 forks source link

Postgresql Support #45

Closed PatWie closed 7 years ago

PatWie commented 8 years ago

You probably address guys coming from ruby-on-rails. Will there be Postgresql support? But nice work.

josephspurrier commented 8 years ago

I don't plan on adding PostgreSQL to the project, but I found that there are a couple changes I should make to make it easier to swap out MySQL for PostgreSQL. I should also add documentation on how to add your own database.

For a quick overview, to add PostgreSQL, you'll need to do the following:

Does this make sense? Would you be willing to make a few of these changes and I can add them to a Wiki article on how to switch to PostgresSQL?

josephspurrier commented 8 years ago

I added a wrapper for the pq package. I don't have any migrations for PostgreSQL yet, but it's a start. https://github.com/blue-jay/blueprint/commit/84663fe8cfc8a007e12b4048a2220eea1b1c7e4d