Distributor
Client for communicating with the stores in a direct manner (no network, pure JS)
Constructor Summary
Public Constructor | ||
public |
constructor(storageDrivers: Array) Create a new Distributor instance |
Member Summary
Public Members | ||
public |
An array of storage drivers |
Method Summary
Public Methods | ||
public |
Distribute a delItem command to all storage drivers |
|
public |
Distribute a drop command to all storage drivers |
|
public |
Distribute a migrate command to all storage drivers |
|
public |
Distribute a putItem command to all storage drivers |
Public Constructors
Public Methods
public delItem(schema: Schema, delItemInfo: DelItemInfo): Promise source
Distribute a delItem command to all storage drivers
Params:
Name | Type | Attribute | Description |
schema | Schema | Information about the schema associated with the item |
|
delItemInfo | DelItemInfo | Information about the item to remove |
public drop(projectName: String, projectVersion: Number): Promise source
Distribute a drop command to all storage drivers