MCPcopy
hub / github.com/MemoriLabs/Memori / StorageAdapter

Interface StorageAdapter

memori-ts/src/storage/base.ts:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 | (string | number)[];
13
14export interface StorageAdapter {
15 execute<T = Record<string, unknown>>(
16 operation: string,
17 binds?: SqlBindValue[]
18 ): Promise<T[]> | T[];
19 begin(): Promise<void> | void;
20 commit(): Promise<void> | void;
21 rollback(): Promise<void> | void;
22 getDialect(): string;
23 close(): Promise<void> | void;
24}
25
26export interface Migration {
27 description: string;

Callers 41

mainFunction · 0.65
_ensure_databaseFunction · 0.65
wrapped_sampleMethod · 0.65
wrapped_sample_asyncMethod · 0.65
wrapped_streamMethod · 0.65
handle_post_responseFunction · 0.65
__iter__Method · 0.65
readMethod · 0.65
executeMethod · 0.65
writeBatchAsyncMethod · 0.65
adapters.test.tsFile · 0.65
_ensure_databaseFunction · 0.65

Implementers 4

MysqlAdaptermemori-ts/src/storage/adapters/mysql.t
SqliteAdaptermemori-ts/src/storage/adapters/sqlite.
PostgresAdaptermemori-ts/src/storage/adapters/postgre
StubAdaptermemori-ts/tests/storage/registry.test.

Calls

no outgoing calls

Tested by

no test coverage detected