fix database pool json field and update patch version

This commit is contained in:
Sunny Beatteay 2019-03-27 11:08:53 -04:00
parent 252753eb38
commit 4a5db6be78
4 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
# Change Log
## [v1.10.1] - 2019-03-27
- #219 Fix Database Pools json field - @sunny-b
## [v1.10.0] - 2019-03-20
- #215 Add support for Databases - @mikejholly

View File

@ -165,7 +165,7 @@ type DatabasePool struct {
User string `json:"user"`
Name string `json:"name"`
Size int `json:"size"`
Database string `json:"database"`
Database string `json:"db"`
Mode string `json:"mode"`
Connection *DatabaseConnection `json:"connection"`
}

View File

@ -614,7 +614,7 @@ func TestDatabases_ListPools(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:pass@host.com/db",
"host": "host.com",
@ -669,7 +669,7 @@ func TestDatabases_CreatePool(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:pass@host.com/db",
"host": "host.com",
@ -732,7 +732,7 @@ func TestDatabases_GetPool(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:pass@host.com/db",
"host": "host.com",

View File

@ -17,7 +17,7 @@ import (
)
const (
libraryVersion = "1.10.0"
libraryVersion = "1.10.1"
defaultBaseURL = "https://api.digitalocean.com/"
userAgent = "godo/" + libraryVersion
mediaType = "application/json"