Liam Staskawicz
66fbe2d01a
dialect: introduce layer to implement SQL-specific queries for internal goose operations
2013-04-07 17:51:48 -07:00
Liam Staskawicz
608aee6c2e
cleanup: rename MakeDBConf to NewDBConf to more clearly represent what it's actually doing. No functional changes.
2013-04-07 17:26:46 -07:00
Liam Staskawicz
09e81b9cb9
dbconf: allow configuration to override a driver's import field
2013-04-07 15:18:43 -07:00
Liam Staskawicz
4446df2ca6
dbconf: split out separate DBDriver struct to encapsulate the info required for a given driver. as a bonus, we now import the correct package for Go migrations based on the driver - previously, we imported postgres only.
2013-04-07 14:24:03 -07:00
Liam Staskawicz
f1ab447a9a
dbconf: cleaning, no need to declare several error variables
2013-04-07 11:21:04 -07:00
Chris Baynes
de7ced58c6
Update postgres dependency.
2013-04-03 17:31:40 +02:00
Liam Staskawicz
634c127941
dbconf: accept path and env to allow for testing
2013-03-30 16:58:02 -07:00
Liam Staskawicz
3c6b6c35c4
use filepath rather than path to ensure we're dealing with filenames in an OS compatible way. fixes #2 .
2013-02-24 23:06:12 -08:00
Josh Bleecher Snyder
6f67731d6a
Autoparse postgres urls
2013-01-10 18:11:46 -08:00
Josh Bleecher Snyder
f787354860
Expand environment variables in dbconf.yml's open
...
The immediate goal here is to make using goose
with Heroku easier, where the database connection
url is provided by an environment variable. More
generally, this makes it easier to avoid committing
sensitive information like database credentials.
2013-01-10 18:11:45 -08:00
Liam Staskawicz
9fbce90a79
flags: improved option names
2012-12-24 12:12:31 -08:00
Liam Staskawicz
fe14d0a1f5
flags: consolidate dbconf details to DBConf struct, reusable by any subcommands.
2012-12-24 10:09:15 -08:00
Liam Staskawicz
bccf6afa62
reorg: breaking out functionality into separate subcommands
2012-12-23 14:01:45 -08:00