@db-auto/postgres
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -34,3 +34,3 @@ "use strict"; | ||
var res = yield client.query(sql, params); | ||
return ({ meta: { columns: [] }, rows: res.rows }); | ||
return ({ meta: { columns: res.fields.map(md => ({ name: md.name })) }, rows: res.rows }); | ||
} | ||
@@ -37,0 +37,0 @@ finally { |
@@ -47,2 +47,8 @@ "use strict"; | ||
]); | ||
expect(res.meta).toEqual({ | ||
"columns": [ | ||
{ "name": "driverid" }, | ||
{ "name": "name" } | ||
] | ||
}); | ||
} | ||
@@ -49,0 +55,0 @@ finally { |
{ | ||
"name": "@db-auto/postgres", | ||
"description": "", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"main": "dist/index", | ||
@@ -21,4 +21,4 @@ "types": "dist/index", | ||
"pg": "^8.10.0", | ||
"@db-auto/utils": "0.0.21", | ||
"@db-auto/dal": "0.0.21" | ||
"@db-auto/utils": "0.0.22", | ||
"@db-auto/dal": "0.0.22" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
8616
166
+ Added@db-auto/dal@0.0.22(transitive)
+ Added@db-auto/utils@0.0.22(transitive)
- Removed@db-auto/dal@0.0.21(transitive)
- Removed@db-auto/utils@0.0.21(transitive)
Updated@db-auto/dal@0.0.22
Updated@db-auto/utils@0.0.22