Advanced Capability Index
This page lists the stable capability entry points in the current TypeScript version of monSQLize.
monSQLize is a database-native production data runtime layer. The current stable adapter is MongoDB; MySQL and PostgreSQL are planned as future adapters and are not part of the current npm runtime.
Principles:
- Start with the API entry points users can call.
- Then point to the corresponding documentation and runnable examples.
Current Capability Overview
1. Model
Available entries:
Model.define/get/list/undefine/redefinemsq.model()- relations / virtuals / populate
- common model queries such as
findOne()andfindAndCount()
Model documentation and examples:
- Docs: Model Overview, Populate, Relations, Nested Populate
- Examples: model.ts, populate-relations.ts
2. write-path-policy
Available entries:
writePathPolicy.defaultwritePathPolicy.namespacesWritePathPolicyOptions
Use this when selected namespaces should be written through msq.model() instead of direct collection() writes. See Write Path Policy. GridFS writes use the gridfs field and are documented in GridFS.
3. transaction
Available entries:
startSession()withTransaction()
Good first-use cases:
- Identifying the transaction wrapper entry.
- Inspecting transaction retry, timeout, and statistics behavior.
4. pool
Available entries:
pool()ConnectionPoolManagerpools/poolStrategy/poolFallback/maxPoolsCount
This is the current entry point for:
- Multi-pool onboarding.
- Configuration contract and runtime routing explanations.
5. sync / slow-query-log
Available entries:
- sync: contract / manager / lifecycle
- slow-query-log: manager / queue / runtime façade
These capabilities include topic pages and runnable examples:
- sync: Change Stream Sync, examples sync.ts and sync-target-failure.ts
- slow-query-log: Slow Query Logging, example slow-query-log.ts
For deployment and failure behavior, continue with Distributed Deployment, Production Rollout, and Failure Recovery Examples.
6. Recommended Entries in This Repository
- Documentation home: README
- API index: API Index
- Example index: Examples
- Runnable examples: examples/docs
7. Common Reading Paths
- Model path: Model Overview, Relations, Populate
- Transaction path: Transactions, Transaction Optimizations
- Pool and deployment path: Pool Configuration, Pool Chain API, Production Rollout
- Cache path: Cache Configuration, Cache Creation, Cache Invalidation
- Sync and observability path: Change Stream Sync, Production Rollout, Slow Query Logging