Extend Postgres data type map
This commit is contained in:
parent
3ba43a1b35
commit
27cdde679c
|
@ -84,10 +84,13 @@ module PostgresModule {
|
||||||
bigint: FieldTypes.NUMBER,
|
bigint: FieldTypes.NUMBER,
|
||||||
decimal: FieldTypes.NUMBER,
|
decimal: FieldTypes.NUMBER,
|
||||||
smallint: FieldTypes.NUMBER,
|
smallint: FieldTypes.NUMBER,
|
||||||
|
real: FieldTypes.NUMBER,
|
||||||
|
"double precision": FieldTypes.NUMBER,
|
||||||
timestamp: FieldTypes.DATETIME,
|
timestamp: FieldTypes.DATETIME,
|
||||||
time: FieldTypes.DATETIME,
|
time: FieldTypes.DATETIME,
|
||||||
boolean: FieldTypes.BOOLEAN,
|
boolean: FieldTypes.BOOLEAN,
|
||||||
json: FieldTypes.JSON,
|
json: FieldTypes.JSON,
|
||||||
|
date: FieldTypes.DATETIME,
|
||||||
}
|
}
|
||||||
|
|
||||||
async function internalQuery(client: any, query: SqlQuery) {
|
async function internalQuery(client: any, query: SqlQuery) {
|
||||||
|
|
Loading…
Reference in New Issue