@sethucms/adapter-memory
v0.1.0
Published
In-memory reference adapter for SethuCMS. For tests, demos and as a template for new adapters.
Readme
@sethucms/adapter-memory
Keeps records in memory. For gateway tests, demos, and as the smallest readable example of an adapter. Not for real data.
import { MemoryAdapter } from '@sethucms/adapter-memory';
const adapter = new MemoryAdapter({ collections: [posts] });
await adapter.connect({ connectionId: 'demo', config: {}, credentials: {}, readOnly: false });Pass capabilities to pretend to be a more limited database (for example PRESETS.dynamodb) and check how the platform reacts.
It passes the full conformance suite, both with full capabilities and with DynamoDB-like limits.
