MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getPort

Function getPort

packages/components/nodes/vectorstores/Postgres/utils.ts:11–13  ·  view source on GitHub ↗
(nodeData?: INodeData)

Source from the content-addressed store, hash-verified

9}
10
11export function getPort(nodeData?: INodeData) {
12 return defaultChain(nodeData?.inputs?.port, process.env.POSTGRES_VECTORSTORE_PORT, '5432')
13}
14
15export function getSSL(nodeData?: INodeData) {
16 return defaultChain(nodeData?.inputs?.ssl, process.env.POSTGRES_VECTORSTORE_SSL, false)

Callers 2

constructorMethod · 0.90
getPortFunction · 0.90

Calls 1

defaultChainFunction · 0.90

Tested by

no test coverage detected