diff --git a/Integrate-SQL-Database-Flow-json b/Integrate-SQL-Database-Flow-json new file mode 100644 index 0000000..3cefa6f --- /dev/null +++ b/Integrate-SQL-Database-Flow-json @@ -0,0 +1,676 @@ +{ + "design": [ + { + "id":"sd_pSjVZDLSoiMBJQRJ", + "type":"HttpIn", + "z":"SSD_SERVICE_ID_sd_VUHHna2pPkPinGvN", + "viewType":"server", + "nodeType":"start", + "name":"Insert a record to MSSQL", + "path":"sqlinsert", + "uploadpath":"", + "summary":"", + "description":"", + "method":"put", + "sequenceId":"", + "consumes":"", + "produces":"", + "filetype":"path", + "acceptFileUpload":false, + "httpOptions": { + "sqlinsert": { + "put": { + "summary":"", + "description":"", + "consumes": [ + ], + "produces": [ + ], + "parameters": [ + ], + "responses": { + } + } + } + }, + "editableListData": { + "responses": [ + ], + "params": [ + ], + "produces": [ + ], + "consumes": [ + ] + }, + "inputs":0, + "outputs":1, + "category":"HTTP", + "x":60, + "y":40, + "wires": [ + [ + "sd_oqYC5nZIaZWcbzFm" + ] + ], + "__ssdTypeInputs__": { + "uploadpath": { + "type":"str", + "value":"", + "nullable":"true", + "nullableValue":"", + "constant":false + } + }, + "__n_excludedFromValidation__": { + } + }, + { + "id":"sd_oqYC5nZIaZWcbzFm", + "type":"Script", + "z":"SSD_SERVICE_ID_sd_VUHHna2pPkPinGvN", + "viewType":"common", + "nodeType":"flow", + "name":"key", + "script":"bh.keys=[\"name111\",\"pass\"]\nbh.input.keys1=[\"namekey123\",\"pass123\"]\nbh.local.keys2=[\"namekey1003\",\"pass12300\"]", + "functionName":"key", + "category":"Function", + "x":200, + "y":40, + "wires": [ + [ + "sd_dLedCMyWvMmCTmfR" + ] + ], + "__n_excludedFromValidation__": { + } + }, + { + "id":"sd_zosx9ZWYWHPkBYQ3", + "type":"db-config", + "viewType":"server", + "nodeType":"flow", + "dbOption": { + "name":"mssql_702", + "type":"mssql", + "host":"localhost", + "port":8400, + "username":"neutrinos", + "password":"neutrinos@1234", + "database":"database", + "connectionTimeout":15000, + "requestTimeout":15000, + "synchronize":false, + "options": { + "instanceName":"", + "cancelTimeout":5000, + "packetSize":4096, + "useUTC":true, + "localAddress":"", + "readOnlyIntent":false, + "encrypt":true + }, + "pool": { + "max":10, + "min":1, + "maxWaitingClients":0, + "fifo":true, + "priorityRange":1, + "evictionRunIntervalMillis":0, + "numTestsPerRun":3, + "softIdleTimeoutMillis":-1 + } + }, + "disabledb":false, + "selectedDB":"mssql", + "selectedOption":"mssql", + "dbCategory":"sql", + "mssql_name":"mssql_702", + "mssql_type":"mssql", + "mssql_host":"localhost", + "mssql_port":8400, + "mssql_username":"neutrinos", + "mssql_password":"neutrinos@1234", + "mssql_database":"database", + "mssql_connectionTimeout":15000, + "mssql_requestTimeout":15000, + "mssql_synchronize":false, + "mssql_options.instanceName":"", + "mssql_pool.max":10, + "mssql_pool.min":1, + "mssql_pool.maxWaitingClients":0, + "mssql_pool.fifo":true, + "mssql_pool.priorityRange":1, + "mssql_pool.evictionRunIntervalMillis":0, + "mssql_pool.numTestsPerRun":3, + "mssql_pool.softIdleTimeoutMillis":-1, + "mssql_options.cancelTimeout":5000, + "mssql_options.packetSize":4096, + "mssql_options.useUTC":true, + "mssql_options.localAddress":"", + "mssql_options.readOnlyIntent":false, + "mssql_options.encrypt":true, + "oracle_name":"mssql_connection", + "oracle_type":"mssql", + "oracle_connectString":"oracle", + "oracle_host":"localhost", + "oracle_port":1521, + "oracle_username":"username", + "oracle_password":"password", + "oracle_serviceName":"orcl", + "oracle_connectionTimeout":15000, + "oracle_requestTimeout":15000, + "oracle_synchronize":false, + "mongodb_name":"mssql_connection", + "mongodb_type":"mssql", + "mongodb_url":"mongodb://localhost:27017", + "mongodb_options":"", + "mysql_name":"mssql_connection", + "mysql_type":"mssql", + "mysql_host":"localhost", + "mysql_port":3306, + "mysql_username":"username", + "mysql_password":"password", + "mysql_database":"database", + "mysql_synchronize":false, + "mysql_extra.connectionLimit":10, + "mysql_charset":"UTF8_GENERAL_CI", + "mysql_timezone":"local", + "mysql_connectTimout":10000, + "mysql_acquireTimeout":10000, + "mysql_insecureAuth":false, + "mysql_supportBigNumbers":true, + "mysql_bigNumberStrings":false, + "mysql_dateStrings":false, + "mysql_debug":false, + "mysql_trace":true, + "mysql_multipleStatements":false, + "mysql_flags":"flags", + "mariadb_name":"mssql_connection", + "mariadb_type":"mssql", + "mariadb_host":"localhost", + "mariadb_port":3306, + "mariadb_username":"username", + "mariadb_synchronize":false, + "mariadb_password":"password", + "mariadb_database":"database", + "mariadb_charset":"UTF8_GENERAL_CI", + "mariadb_timezone":"local", + "mariadb_extra.connectionLimit":10, + "mariadb_connectTimout":10000, + "mariadb_acquireTimeout":10000, + "mariadb_insecureAuth":false, + "mariadb_supportBigNumbers":true, + "mariadb_bigNumberStrings":false, + "mariadb_dateStrings":false, + "mariadb_debug":false, + "mariadb_trace":true, + "mariadb_multipleStatements":false, + "mariadb_flags":"flags", + "postgres_name":"mssql_connection", + "postgres_type":"mssql", + "postgres_host":"localhost", + "postgres_port":5432, + "postgres_username":"username", + "postgres_password":"password", + "postgres_database":"database", + "postgres_schema":"public", + "postgres_uuidExtension":"", + "postgres_synchronize":false, + "category":"config", + "__ssdTypeInputs__": { + "mssql_host": { + "type":"str", + "value":"localhost" + }, + "mssql_port": { + "type":"num", + "value":"8400" + }, + "mssql_username": { + "type":"str", + "value":"neutrinos" + }, + "mssql_password": { + "type":"str", + "value":"neutrinos@1234" + }, + "mssql_database": { + "type":"str", + "value":"database" + }, + "mssql_connectionTimeout": { + "type":"num", + "value":15000 + }, + "mssql_requestTimeout": { + "type":"num", + "value":15000 + }, + "mssql_synchronize": { + "type":"bool", + "value":false + }, + "mssql_options.instanceName": { + "type":"str", + "value":"" + }, + "mssql_pool.max": { + "type":"num", + "value":10 + }, + "mssql_pool.min": { + "type":"num", + "value":1 + }, + "mssql_pool.maxWaitingClients": { + "type":"num", + "value":"" + }, + "mssql_pool.fifo": { + "type":"bool", + "value":true + }, + "mssql_pool.priorityRange": { + "type":"num", + "value":1 + }, + "mssql_pool.evictionRunIntervalMillis": { + "type":"num", + "value":0 + }, + "mssql_pool.numTestsPerRun": { + "type":"num", + "value":3 + }, + "mssql_pool.softIdleTimeoutMillis": { + "type":"num", + "value":-1 + }, + "mssql_options.cancelTimeout": { + "type":"num", + "value":5000 + }, + "mssql_options.packetSize": { + "type":"num", + "value":4096 + }, + "mssql_options.useUTC": { + "type":"bool", + "value":true + }, + "mssql_options.localAddress": { + "type":"str", + "value":"" + }, + "mssql_options.readOnlyIntent": { + "type":"bool", + "value":false + }, + "mssql_options.encrypt": { + "type":"bool", + "value":true + }, + "oracle_connectString": { + "type":"str", + "value":"oracle" + }, + "oracle_host": { + "type":"str", + "value":"localhost" + }, + "oracle_port": { + "type":"num", + "value":1521 + }, + "oracle_username": { + "type":"str", + "value":"username" + }, + "oracle_password": { + "type":"str", + "value":"password" + }, + "oracle_serviceName": { + "type":"str", + "value":"orcl" + }, + "oracle_connectionTimeout": { + "type":"num", + "value":15000 + }, + "oracle_requestTimeout": { + "type":"num", + "value":15000 + }, + "oracle_synchronize": { + "type":"bool", + "value":false + }, + "mongodb_url": { + "type":"str", + "value":"mongodb://localhost:27017" + }, + "mongodb_options": { + "type":"str", + "value":"" + }, + "mysql_host": { + "type":"str", + "value":"localhost" + }, + "mysql_port": { + "type":"num", + "value":3306 + }, + "mysql_username": { + "type":"str", + "value":"username" + }, + "mysql_password": { + "type":"str", + "value":"password" + }, + "mysql_database": { + "type":"str", + "value":"database" + }, + "mysql_synchronize": { + "type":"bool", + "value":false + }, + "mysql_extra.connectionLimit": { + "type":"num", + "value":10 + }, + "mysql_charset": { + "type":"str", + "value":"UTF8_GENERAL_CI" + }, + "mysql_timezone": { + "type":"str", + "value":"local" + }, + "mysql_connectTimout": { + "type":"num", + "value":10000 + }, + "mysql_acquireTimeout": { + "type":"num", + "value":10000 + }, + "mysql_insecureAuth": { + "type":"bool", + "value":false + }, + "mysql_supportBigNumbers": { + "type":"bool", + "value":true + }, + "mysql_bigNumberStrings": { + "type":"bool", + "value":false + }, + "mysql_dateStrings": { + "type":"bool", + "value":false + }, + "mysql_debug": { + "type":"bool", + "value":false + }, + "mysql_trace": { + "type":"bool", + "value":true + }, + "mysql_multipleStatements": { + "type":"bool", + "value":false + }, + "mysql_flags": { + "type":"str", + "value":"flags" + }, + "mariadb_host": { + "type":"str", + "value":"localhost" + }, + "mariadb_port": { + "type":"num", + "value":3306 + }, + "mariadb_username": { + "type":"str", + "value":"username" + }, + "mariadb_synchronize": { + "type":"bool", + "value":false + }, + "mariadb_password": { + "type":"str", + "value":"password" + }, + "mariadb_database": { + "type":"str", + "value":"database" + }, + "mariadb_charset": { + "type":"str", + "value":"UTF8_GENERAL_CI" + }, + "mariadb_timezone": { + "type":"str", + "value":"local" + }, + "mariadb_extra.connectionLimit": { + "type":"num", + "value":10 + }, + "mariadb_connectTimout": { + "type":"num", + "value":10000 + }, + "mariadb_acquireTimeout": { + "type":"num", + "value":10000 + }, + "mariadb_insecureAuth": { + "type":"bool", + "value":false + }, + "mariadb_supportBigNumbers": { + "type":"bool", + "value":true + }, + "mariadb_bigNumberStrings": { + "type":"bool", + "value":false + }, + "mariadb_dateStrings": { + "type":"bool", + "value":false + }, + "mariadb_debug": { + "type":"bool", + "value":false + }, + "mariadb_trace": { + "type":"bool", + "value":true + }, + "mariadb_multipleStatements": { + "type":"bool", + "value":false + }, + "mariadb_flags": { + "type":"str", + "value":"flags" + }, + "postgres_host": { + "type":"str", + "value":"localhost" + }, + "postgres_port": { + "type":"num", + "value":5432 + }, + "postgres_username": { + "type":"str", + "value":"username" + }, + "postgres_password": { + "type":"str", + "value":"password" + }, + "postgres_database": { + "type":"str", + "value":"database" + }, + "postgres_schema": { + "type":"str", + "value":"public" + }, + "postgres_uuidExtension": { + "type":"str", + "value":"" + }, + "postgres_synchronize": { + "type":"bool", + "value":false + } + }, + "__n_excludedFromValidation__": { + } + }, + { + "id":"sd_dLedCMyWvMmCTmfR", + "type":"ExecuteSql", + "z":"SSD_SERVICE_ID_sd_VUHHna2pPkPinGvN", + "viewType":"server", + "nodeType":"flow", + "name":"SQL Insert", + "databaseConfig":"sd_zosx9ZWYWHPkBYQ3", + "resultMap": { + "type":"bh.input", + "value":"result" + }, + "multipleQuery":"", + "singleQuery": { + "type":"str", + "value":"INSERT INTO dbo.[test](name,password)VALUES(@0,@1)" + }, + "inputs":1, + "outputs":1, + "paramMappingObj": { + "type":"bh.local", + "value":"keys2" + }, + "dbType":"mssql", + "functionName":"sQLInsert", + "category":"Storage", + "x":360, + "y":40, + "wires": [ + [ + "sd_JY0x1kCDMpVVA5nZ" + ] + ], + "__n_excludedFromValidation__": { + } + }, + { + "id":"sd_JY0x1kCDMpVVA5nZ", + "type":"HttpOut", + "z":"SSD_SERVICE_ID_sd_VUHHna2pPkPinGvN", + "viewType":"server", + "nodeType":"flow", + "name":"HTTP Response", + "headers": { + }, + "responseBody": { + "type":"str", + "value":"Success", + "ssd_typedInputField":true + }, + "httpcode": { + "type":"num", + "value":200, + "ssd_typedInputField":true + }, + "responseType":"obj", + "responseMapping": { + "status": { + "type":"num", + "value":200, + "ssd_typedInputField":true + }, + "obj": { + "type":"str", + "value":"Success", + "ssd_typedInputField":true + }, + "send": { + "type":"str", + "value":"Success", + "ssd_typedInputField":true + } + }, + "inputs":1, + "outputs":0, + "editableListData": { + "headers": [ + ] + }, + "cookiesList": { + }, + "switchStates": { + "headers":"Map", + "cookies":"Map" + }, + "functionName":"hTTPResponse", + "category":"HTTP", + "x":505, + "y":40, + "wires": [ + ], + "__n_excludedFromValidation__": { + } + } + ], + "dependencies": [ + { + "name":"neutrinos-sql-plugin", + "description":"SQL Plugin", + "displayName":"SQL Plugin", + "default":true, + "dependencies": [ + { + "name":"ndefault-sql", + "packageType":"studio-nodes", + "displayName":"SQL", + "nodes": { + "server": [ + { + "name":"ExecuteSql", + "dependencies": [ + { + "name":"typeorm", + "version":"0.2.37" + }, + { + "name":"typeorm-static", + "version":"1.1.1" + } + ] + } + ] + } + } + ], + "missing":false + } + ], + "serviceDesignerType":"server", + "exportedDesignApp":"listapp" +}