Registry / database / noflo-pgorm

noflo-pgorm

JSON →
library0.0.21jsnpmunverified

PostgreSQL ORM wrapper for noflo-pg, providing Read and Write components for NoFlo graph-based programming. Version 0.0.21 (last release ~2014). Minimal documentation, no known maintenance. Output uses NoFlo's IP (Information Packet) group/data format. Thin layer over noflo-pg without advanced ORM features like migrations or associations. Not actively developed.

npm install noflo-pgorm
INSTALL
IMPORT
SIG · NOFLO-PGORM
N
noflo-pgorm
databasejavascriptv0.0.21
harness data pending
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'); }); });
Debug
Known issues
deprecatedPackage is effectively unmaintained; last release 2014. No guarantees of compatibility with modern Node.js or PostgreSQL.
fix
Consider modern alternatives like TypeORM or Sequelize, or use noflo-pg directly.
affects: >=0.0.0
gotchaComponents are loaded by name string, not imported directly. Requires NoFlo's component loader infrastructure.
fix
Use noflo.ComponentLoader with 'pgorm/Read' or 'pgorm/Write'.
affects: >=0.0.0
gotchaInput/output format uses NoFlo groups (BEGINGROUP/ENDGROUP/DATA) which differs from standard JavaScript ORMs.
fix
Familiarize with NoFlo IP semantics before using.
affects: >=0.0.0
gotcha'Read' component expects constraints as comma-separated strings like 'column,operator,value', not structured objects.
fix
Format constraints as strings, e.g., 'username,=,elephant'.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'noflo-pgorm'
Package not installed or not searched in correct node_modules path.
fix
Run '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.
fix
Pass 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.
fix
Use loader.load('pgorm/Read', callback) as shown in quickstart.
Upgrade
Version history
0.0.21latest on npm
Audit
Dependencies
noflorequiredNoFlo runtime required to load components
noflo-pgrequiredUnderlying PostgreSQL client
Agent activity
11 hits · last 30 days
node
10
Resources
noflo-pgorm — npm install noflo-pgorm · libregistry