I have some problems with documentation for hood
, there no explanation about what supposed to be in config.json
. I've tried:
{
"development": {
"driver": "postgres",
"source": "my_development"
}
}
but I have the error:
hood db:migrate
2014/06/23 12:53:14 applying migrations...
panic: missing "=" after "my_development" in connection info string"
From the hood documentation :
The driver and source fields are the strings you would pass to the sql.Open(2) function.
So the driver
value should be postgresql
(for your example), and the source
value should be either a list of key=value
or a full connection URI (like described in the postgresql documentation).
Some examples (from here) :
postgres://pqgotest:password@localhost/pqgotest?sslmode=verify-full
user=pqgotest dbname=pqgotest sslmode=verify-full