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

Function getDatabase

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

Source from the content-addressed store, hash-verified

5}
6
7export function getDatabase(nodeData?: INodeData) {
8 return defaultChain(nodeData?.inputs?.database, process.env.POSTGRES_VECTORSTORE_DATABASE)
9}
10
11export function getPort(nodeData?: INodeData) {
12 return defaultChain(nodeData?.inputs?.port, process.env.POSTGRES_VECTORSTORE_PORT, '5432')

Callers 2

constructorMethod · 0.90
getDatabaseFunction · 0.90

Calls 1

defaultChainFunction · 0.90

Tested by

no test coverage detected