Projects /

Project overview

monSQLize

A Node.js data access layer for MongoDB queries, models and caching.

Use cases and boundaries

Use collection or model entry points to share data access in a Node.js application. Queries keep MongoDB semantics, and an application can configure writePathPolicy with model-only for selected namespaces to block direct writes. Writes through the Model path use its hooks and defaults. The application owns connection configuration and shutdown. v3.6.0 write path policy

Getting started and compatibility

Install the released package

npm install monsqlize@3.6.0

Registry 3.6.0 declares Node.js 18+. The evidenced runtime is MongoDB. MySQL and PostgreSQL adapters are separate roadmap items. Run the example as .mjs with an existing local MongoDB test database. It prints the matching document from demo.reports, or null if slug: 'weekly' is absent.

import MonSQLize from 'monsqlize';
const store = new MonSQLize({ type: 'mongodb', databaseName: 'demo',
  config: { uri: 'mongodb://127.0.0.1:27017' } });
await store.connect();
try { console.log(await store.collection('reports').findOne({ slug: 'weekly' })); }
finally { await store.close(); }

Public contribution record

Rocky updated the README release notes pointer for 3.6.0 and published the v3.6.0 release. GitHub commit and authorship

Project relationships