MemoryDatabase
API > [GraphStoreMemory Module] > MemoryDatabase
Class
An in memory database that implements the minimum viable Firebase Realtime Database V3 API
Not typically used outside GraphStoreMemory but provided in case it's useful for mocking tests or applications outside of @besync/GraphSTore
Implements
Constructors
Methods
Constructors
any
): MemoryDatabase
⊕ new MemoryDatabase(data: Defined in GraphStoreMemory.ts:38
constructor
Parameters:
Param | Type | Description |
---|---|---|
data | any | The initial JSON object to use as the store data |
Returns: MemoryDatabase
Methods
goOffline
► goOffline(): void
Defined in GraphStoreMemory.ts:112
Returns: void
ref
► ref(path: string
): object
Implementation of IFireDatabase.ref
Defined in GraphStoreMemory.ts:49
Parameters:
Param | Type | Description |
---|---|---|
path | string | - |
Returns: object