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

Function getHost

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

Source from the content-addressed store, hash-verified

1import { defaultChain, INodeData } from '../../../src'
2
3export function getHost(nodeData?: INodeData) {
4 return defaultChain(nodeData?.inputs?.host, process.env.POSTGRES_VECTORSTORE_HOST)
5}
6
7export function getDatabase(nodeData?: INodeData) {
8 return defaultChain(nodeData?.inputs?.database, process.env.POSTGRES_VECTORSTORE_DATABASE)

Callers 2

constructorMethod · 0.90
getHostFunction · 0.90

Calls 1

defaultChainFunction · 0.90

Tested by

no test coverage detected