Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
noflo-pgorm components
✓ npm install noflo-pgorm
✗ const pgorm = require('noflo-pgorm')
This package provides NoFlo components, not a direct API. Use noflo.ComponentLoader to load 'pgorm/Read' and 'pgorm/Write'.
Read
✓ loader.load('pgorm/Read', callback)
✗ import { Read } from 'noflo-pgorm'
Components are registered under the 'pgorm/' namespace via NoFlo's component loader, not exported as modules.
Write
✓ loader.load('pgorm/Write', callback)
✗ const Write = require('noflo-pgorm').Write
Same as Read: use NoFlo component loader with 'pgorm/Write'.
Shows how to load and use the Read component via NoFlo's component loader, sending server URL and query constraints.
// Install: npm install noflo noflo-pg noflo-pgorm
// Create a NoFlo graph using noflo-pgorm components
const noflo = require('noflo');
const loader = new noflo.ComponentLoader('/path/to/node_modules');
loader.load('pgorm/Read', (err, Read) => {
if (err) { console.error(err); return; }
const network = noflo.createNetwork();
network.addComponent('Read', Read);
// Connect server URL
const serverPacket = noflo.internalSocket.createSocket();
network.addEdge('Read', 'SERVER', serverPacket);
serverPacket.post('tcp://default@localhost:5432/postgres');
// Send query with token and constraints
const tokenGroup = noflo.internalSocket.createSocket();
network.addEdge('Read', 'IN', tokenGroup);
tokenGroup.beginGroup('token');
tokenGroup.beginGroup('users');
tokenGroup.data('username,=,elephant');
tokenGroup.endGroup();
tokenGroup.endGroup();
// Start network
network.start(() => {
console.log('Graph ready');
});
});
Errors
Common errors & fixes
Cannot find module 'noflo-pgorm'
Package not installed or not searched in correct node_modules path.
fixRun 'npm install noflo-pgorm' and ensure it's in your project's node_modules.
No component registered for 'pgorm/Read'
Component loader cannot find the component; package may not be loaded properly.
fixPass correct base path to ComponentLoader constructor.
TypeError: Read is not a constructor
Attempting to use the component directly via require instead of NoFlo's loader.
fixUse loader.load('pgorm/Read', callback) as shown in quickstart. Audit
Dependencies
noflorequiredNoFlo runtime required to load components
noflo-pgrequiredUnderlying PostgreSQL client