@fougere/adapter-memory
Rows in a Map — the source a first run meets, and the one that ships no driver.
Use it
npm install @fougere/adapter-memory
pnpm add @fougere/adapter-memory
bun add @fougere/adapter-memory
yarn add @fougere/adapter-memory
// fougere.config.ts
import '@fougere/adapter-memory';
export default defineFougere({
sources: { main: { type: 'memory' } },
});
The import is what makes the word exist: without it, the editor and the boot both refuse it.
Every key each one admits: sources.
What it extends
The interfaces of Fougere this package adds its words to, with declare module — see Interfaces to extend.
| interface | adds |
|---|---|
FougereSources | memory |
Entries: @fougere/adapter-memory
What you import
| name | |
|---|---|
createMemoryStorage | |
createMemorySource | A source keeping rows in one Map per entity name. |