AccountsTreeStore
Direct Subclass:
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
getPersistent(jdb: JungleDB): AccountsTreeStore |
|
public static |
initPersistent(jdb: JungleDB) |
Constructor Summary
Public Constructor | ||
public |
constructor(store: IObjectStore) |
Member Summary
Public Members | ||
public get |
|
Method Summary
Public Methods | ||
public |
abort(): Promise |
|
public |
commit(): Promise<boolean> |
|
public |
get(key: string): Promise<AccountsTreeNode> |
|
public |
getRootNode(): Promise<AccountsTreeNode> |
|
public |
async getTerminalNodes(startPrefix: *, size: *): Promise<Array<AccountsTreeNode>> |
|
public |
async put(node: AccountsTreeNode): Promise<string> |
|
public |
async remove(node: AccountsTreeNode): Promise<string> |
|
public |
|
|
public |
synchronousTransaction(enableWatchdog: boolean): SynchronousAccountsTreeStore |
|
public |
transaction(enableWatchdog: boolean): AccountsTreeStore |
|
public |
truncate(): Promise |
Static Public Methods
public static getPersistent(jdb: JungleDB): AccountsTreeStore source
Params:
Name | Type | Attribute | Description |
jdb | JungleDB |
public static initPersistent(jdb: JungleDB) source
Params:
Name | Type | Attribute | Description |
jdb | JungleDB |
Public Constructors
public constructor(store: IObjectStore) source
Params:
Name | Type | Attribute | Description |
store | IObjectStore |
Public Members
public get tx: Transaction source
Public Methods
public get(key: string): Promise<AccountsTreeNode> source
Params:
Name | Type | Attribute | Description |
key | string |
public async getTerminalNodes(startPrefix: *, size: *): Promise<Array<AccountsTreeNode>> source
Params:
Name | Type | Attribute | Description |
startPrefix | * | This prefix will not be included. |
|
size | * |
public async put(node: AccountsTreeNode): Promise<string> source
Params:
Name | Type | Attribute | Description |
node | AccountsTreeNode |
Return:
Promise<string> |
public async remove(node: AccountsTreeNode): Promise<string> source
Params:
Name | Type | Attribute | Description |
node | AccountsTreeNode |
Return:
Promise<string> |
public snapshot(tx: AccountsTreeStore): AccountsTreeStore source
Params:
Name | Type | Attribute | Description |
tx | AccountsTreeStore |
|
public synchronousTransaction(enableWatchdog: boolean): SynchronousAccountsTreeStore source
Params:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|
public transaction(enableWatchdog: boolean): AccountsTreeStore source
Params:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|