New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

db2graphql

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db2graphql - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

2

package.json
{
"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' },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc