MCPcopy Create free account
hub / github.com/Parana-Games/tinymo / setDocumentClient

Method setDocumentClient

src/client.ts:24–27  ·  view source on GitHub ↗
(client?: DynamoDBDocumentClient)

Source from the content-addressed store, hash-verified

22 private constructor(readonly client: DynamoDBDocumentClient) { }
23
24 static setDocumentClient(client?: DynamoDBDocumentClient) {
25 DOCUMENT_CLIENT = client ?? TinymoClient.createDefaultDocumentClient()
26 TINYMO_CLIENT = new TinymoClient(DOCUMENT_CLIENT);
27 }
28
29 static default(): TinymoClient {
30 DOCUMENT_CLIENT = DOCUMENT_CLIENT ?? TinymoClient.createDefaultDocumentClient()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected