@cubejs-backend/postgres-driver
Advanced tools
Comparing version 0.11.0 to 0.11.6
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.11.6](https://github.com/statsbotco/cubejs-client/compare/v0.11.5...v0.11.6) (2019-10-17) | ||
### Bug Fixes | ||
* Postgres driver with redis in non UTC timezone returns timezone shifted results ([f1346da](https://github.com/statsbotco/cubejs-client/commit/f1346da)) | ||
* TypeError: Cannot read property 'table_name' of undefined: Drop orphaned tables implementation drops recent tables in cluster environments ([84ea78a](https://github.com/statsbotco/cubejs-client/commit/84ea78a)) | ||
# [0.11.0](https://github.com/statsbotco/cubejs-client/compare/v0.10.62...v0.11.0) (2019-10-15) | ||
@@ -8,0 +20,0 @@ |
@@ -0,4 +1,7 @@ | ||
const pg = require('pg'); | ||
const moment = require('moment'); | ||
const BaseDriver = require('@cubejs-backend/query-orchestrator/driver/BaseDriver'); | ||
const { Pool } = require('pg'); | ||
const { Pool } = pg; | ||
const GenericTypeToPostgres = { | ||
@@ -8,2 +11,5 @@ string: 'text' | ||
pg.types.setTypeParser(1114, str => moment.utc(str).format(moment.HTML5_FMT.DATETIME_LOCAL_MS)); | ||
pg.types.setTypeParser(1184, str => moment.utc(str).format(moment.HTML5_FMT.DATETIME_LOCAL_MS)); | ||
class PostgresDriver extends BaseDriver { | ||
@@ -10,0 +16,0 @@ constructor(config) { |
@@ -5,3 +5,3 @@ { | ||
"author": "Statsbot, Inc.", | ||
"version": "0.11.0", | ||
"version": "0.11.6", | ||
"engines": { | ||
@@ -15,3 +15,4 @@ "node": ">=8.11.1" | ||
"dependencies": { | ||
"@cubejs-backend/query-orchestrator": "^0.11.0", | ||
"@cubejs-backend/query-orchestrator": "^0.11.6", | ||
"moment": "^2.24.0", | ||
"pg": "^7.8.0" | ||
@@ -26,3 +27,3 @@ }, | ||
}, | ||
"gitHead": "b62d0e18bc793a1182fb2e3d26baf114a9cd848c" | ||
"gitHead": "0613d7784955a898fe193137a6cba66c3285244d" | ||
} |
22813
80
3
+ Addedmoment@^2.24.0
+ Addedmoment@2.30.1(transitive)