Sean Chittenden
4570460f4e
Audit all call sites where `fmt.Errorf()` was being used and switch to errwrap.
2016-12-27 15:50:25 -08:00
Sean Chittenden
9ab60ecc7b
Add an Exists function for each resource type. Also add a provider RWMutex.
...
Some of the checks didn't support concurrent updates. This should
improve the reliability of the provider.
2016-12-27 15:50:25 -08:00
Sean Chittenden
c3a3ddc0f5
Return an empty string if no value was provided.
...
This restores the original behavior of the initial patch.
2016-12-25 15:26:54 -08:00
Sean Chittenden
7d19fcae25
Improve a bit more upon work done in #10922 and only return a quoted
...
string if there is whitespace present.
Aesthetics. What can I say.
2016-12-25 06:19:14 -08:00
Sean Chittenden
6e200c98d0
Use the right verb for errors.
2016-12-25 06:13:33 -08:00
Sean Chittenden
d673a0b532
Properly escape DSN parameters.
2016-12-25 05:53:12 -08:00
Igor Dubinskiy
56a1ea9012
provider/postgresql: Quote connection string parameters
2016-12-23 10:09:32 -08:00
Sean Chittenden
300ef2bc97
Add `connect_timeout` support to the PostgreSQL provider.
2016-12-10 12:32:19 +11:00
Sean Chittenden
3750bf7af2
Depreciate the PostgreSQL provider's `ssl_mode` option in favor of `sslmode`.
...
Both libpq(3) and github.com/lib/pq both use `sslmode`. Prefer this vs
the non-standard `ssl_mode`. `ssl_mode` is supported for compatibility
but should be removed in the future.
Changelog: yes
2016-12-10 12:32:19 +11:00
Sean Chittenden
a200899d93
Allow the PostgreSQL provider to talk to a non-default database.
2016-12-10 12:32:19 +11:00
Sean Chittenden
602a908d7b
Add a `fallback_application_name` to the PostgreSQL DSN.
2016-12-10 12:32:19 +11:00
Alexander Kyxap
f993f0e70e
Added 'connect_timeout' argument to provider 'postgresql' ( #10380 )
2016-11-28 16:52:10 +00:00
James Nugent
34a17d3b46
provider/postgres: Correct casing -> PostgreSQL
2016-09-05 15:04:48 -07:00
Xavier Sellier
fc9825e4c4
- Add support for 'ssl_mode' options present in lib/pq
...
- Update psotgresql provider's documentation
- Enforce default value to 'require' for ssl_mode
2016-04-11 13:20:39 -04:00
stack72
5fbec544d7
Fixing yet more gofmt errors with imports
2015-12-21 09:54:24 +00:00
Adrian Chelaru
e1eef15646
postgresql provider with "database" and "role" resources
2015-12-03 23:44:20 -08:00