LDPoS Postgres Data Access Layer (DAL) built on Knex.js for Capitalisk's LDPoS blockchain framework. Version 6.0.1 provides migration and seeding utilities with Docker-based PostgreSQL and pgAdmin. It relies on Knex for query building and migrations, and is tightly coupled to the LDPoS chain schema. Release cadence is low; primarily used internally in the Capitalisk ecosystem.
npm install ldpos-pg-dalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize the DAL with a Knex instance, get a transaction-aware database handle, and query the accounts table.
Switch to ESM (type: module in package.json) and use import statements.
Use knex.schema.createTable directly instead.
Ensure your PostgreSQL database has the exact schema defined in the LDPoS chain specification.
Always use the returned trxDb object for queries inside a transaction callback.
Use knex migrate/seed commands directly or via scripts.
Run 'npm install ldpos-pg-dal' and ensure 'knex' is also installed.
Use named import: import { getTransactionDb } from 'ldpos-pg-dal'Check docker-compose.yml for credentials and ensure db container is up.