1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00

fixes for mySQL and MSSQL non default ports

This commit is contained in:
Martin McKeaveney 2021-02-03 08:20:21 +00:00
parent 122caf227c
commit befb94aaa9
2 changed files with 15 additions and 4 deletions

View file

@ -17,6 +17,11 @@ const SCHEMA = {
type: FIELD_TYPES.STRING,
default: "localhost",
},
port: {
type: FIELD_TYPES.NUMBER,
required: false,
default: 1433,
},
database: {
type: FIELD_TYPES.STRING,
default: "root",

View file

@ -1,25 +1,31 @@
const mysql = require("mysql")
const { FIELD_TYPES } = require("./Integration")
const SCHEMA = {
docs: "https://github.com/mysqljs/mysql",
datasource: {
host: {
type: "string",
type: FIELD_TYPES.STRING,
default: "localhost",
required: true,
},
port: {
type: FIELD_TYPES.NUMBER,
default: 1433,
required: false,
},
user: {
type: "string",
type: FIELD_TYPES.STRING,
default: "root",
required: true,
},
password: {
type: "password",
type: FIELD_TYPES.PASSWORD,
default: "root",
required: true,
},
database: {
type: "string",
type: FIELD_TYPES.STRING,
required: true,
},
},