db2graphql
Advanced tools
Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "db2graphql", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Generate Graphql schema based on existing relational database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -62,2 +62,3 @@ const hash = require('string-hash-64'); | ||
case 'numeric': | ||
case 'double precision': | ||
graphqlType = 'Float'; | ||
@@ -64,0 +65,0 @@ break; |
@@ -17,3 +17,3 @@ const PostgreSQL = require('../../src/adapters/postgres'); | ||
test('translate database data type tp graphql native type', () => { | ||
test('translate database data type to graphql native type', () => { | ||
const adapter = new PostgreSQL(); | ||
@@ -23,2 +23,3 @@ const columns = [ | ||
{ data_type: 'numeric', toBe: 'Float' }, | ||
{ data_type: 'double precision', toBe: 'Float' }, | ||
{ data_type: 'integer', toBe: 'Int' }, | ||
@@ -25,0 +26,0 @@ { data_type: 'bigint', toBe: 'Int' }, |
1420742
4946