@dbpath/postgres
Advanced tools
Comparing version 0.2.4 to 0.2.6
@@ -68,3 +68,3 @@ "use strict"; | ||
pks.rows.forEach(r => { | ||
table2Pks[r.table_name] = r.column_name; | ||
table2Pks[r.table_name] = [{ name: r.column_name, type: r.data_type }]; | ||
}); | ||
@@ -71,0 +71,0 @@ let tableNamesAndMetaData = tableNames.map(t => { |
@@ -13,3 +13,3 @@ "use strict"; | ||
const pgDal_1 = require("./pgDal"); | ||
const dal_1 = require("@dbpath/dal"); | ||
const fixtures_1 = require("@dbpath/fixtures"); | ||
const inCi = process.env['CI'] === 'true'; | ||
@@ -31,3 +31,3 @@ const env = { type: 'postgres', host: 'localhost', port: 5432, 'database': 'postgres', username: 'phil', password: 'phil' }; | ||
yield dal.update("create table if not exists mission_aud (id int, who text, what text)"); | ||
yield dal.update(`alter table driverTable | ||
yield dal.update(`alter table drivertable | ||
add constraint pk_driver primary key (driverId);`); | ||
@@ -72,4 +72,4 @@ yield dal.update(`alter table mission | ||
const res = yield dal.metaData(); | ||
expect(res).toEqual(dal_1.sampleMeta); | ||
expect(res).toEqual(fixtures_1.sampleMeta); | ||
})); | ||
}); |
{ | ||
"name": "@dbpath/postgres", | ||
"description": "", | ||
"version": "0.2.4", | ||
"version": "0.2.6", | ||
"main": "dist/index", | ||
@@ -21,4 +21,4 @@ "types": "dist/index", | ||
"pg": "^8.10.0", | ||
"@dbpath/utils": "0.2.4", | ||
"@dbpath/dal": "0.2.4" | ||
"@dbpath/utils": "0.2.6", | ||
"@dbpath/dal": "0.2.6" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16030
+ Added@dbpath/config@0.2.6(transitive)
+ Added@dbpath/dal@0.2.6(transitive)
+ Added@dbpath/fixtures@0.2.6(transitive)
+ Added@dbpath/types@0.2.6(transitive)
+ Added@dbpath/utils@0.2.6(transitive)
- Removed@dbpath/config@0.2.4(transitive)
- Removed@dbpath/dal@0.2.4(transitive)
- Removed@dbpath/utils@0.2.4(transitive)
Updated@dbpath/dal@0.2.6
Updated@dbpath/utils@0.2.6