Skip to content

AxDBMemory

Class: AxDBMemory

MemoryDB: DB Service

Export

Extends

  • AxDBBase

Constructors

new AxDBMemory()

new AxDBMemory(__namedParameters): AxDBMemory

Parameters

__namedParameters: Readonly<Omit<AxDBMemoryArgs, "name">> = {}

Returns

AxDBMemory

Overrides

AxDBBase.constructor

Defined in

src/ax/db/memory.ts:24

Properties

fetch()?

protected optional fetch: (input, init?) => Promise<Response>

Parameters

input: string | URL | Request

init?: RequestInit

Returns

Promise<Response>

Inherited from

AxDBBase.fetch

Defined in

src/ax/db/base.ts:27


name

protected name: string

Inherited from

AxDBBase.name

Defined in

src/ax/db/base.ts:26

Methods

_batchUpsert()

_batchUpsert(batchReq, update?, _options?): Promise<AxDBUpsertResponse>

Parameters

batchReq: readonly AxDBUpsertRequest[]

update?: boolean

_options?: Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBUpsertResponse>

Overrides

AxDBBase._batchUpsert

Defined in

src/ax/db/memory.ts:51


_query()

_query(req, _options?): Promise<AxDBQueryResponse>

Parameters

req: Readonly<AxDBQueryRequest>

_options?: Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBQueryResponse>

Overrides

AxDBBase._query

Defined in

src/ax/db/memory.ts:66


_upsert()

_upsert(req, _update?, _options?): Promise<AxDBUpsertResponse>

Parameters

req: Readonly<AxDBUpsertRequest>

_update?: boolean

_options?: Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBUpsertResponse>

Overrides

AxDBBase._upsert

Defined in

src/ax/db/memory.ts:29


batchUpsert()

batchUpsert(req, update?): Promise<AxDBUpsertResponse>

Parameters

req: readonly AxDBUpsertRequest[]

update?: boolean

Returns

Promise<AxDBUpsertResponse>

Inherited from

AxDBBase.batchUpsert

Defined in

src/ax/db/base.ts:89


clearDB()

clearDB(): void

Returns

void

Defined in

src/ax/db/memory.ts:101


getDB()

getDB(): AxDBState

Returns

AxDBState

Defined in

src/ax/db/memory.ts:93


query()

query(req): Promise<AxDBQueryResponse>

Parameters

req: Readonly<AxDBQueryRequest>

Returns

Promise<AxDBQueryResponse>

Inherited from

AxDBBase.query

Defined in

src/ax/db/base.ts:127


setDB()

setDB(state): void

Parameters

state: AxDBState

Returns

void

Defined in

src/ax/db/memory.ts:97


upsert()

upsert(req, update?): Promise<AxDBUpsertResponse>

Parameters

req: Readonly<AxDBUpsertRequest>

update?: boolean

Returns

Promise<AxDBUpsertResponse>

Inherited from

AxDBBase.upsert

Defined in

src/ax/db/base.ts:57