Constructor Summary
Public Constructor | ||
public |
constructor(config: Object) Create a new PostgresqlFacade instance |
Member Summary
Public Members | ||
public |
adapter: * |
|
public |
dropper: * |
|
public |
migrator: * |
|
public |
repository: * |
|
public |
serializer: * |
|
public |
syncer: * |
Method Summary
Public Methods | ||
public |
Remove an item. |
|
public |
Drop postgresql database. |
|
public |
Create a new postgresql database and it's tables. |
|
public |
Insert / update item. |
Public Constructors
Public Members
public adapter: * source
public dropper: * source
public migrator: * source
public repository: * source
public serializer: * source
public syncer: * source
Public Methods
public delItem(itemId: String, schema: Schema, metadata: Metadata): Promise source
Remove an item.
Params:
Name | Type | Attribute | Description |
itemId | String | The id of the item |
|
schema | Schema | The schema for the name and primary properties. |
|
metadata | Metadata | An object with a projectName and projectVersion property. |
public migrate(projectId: String, oldProject: Project, project: Project, changes: Array): Promise source
Create a new postgresql database and it's tables.
public putItem(item: Item, schema: Schema, metadata: Metadata): Promise source
Insert / update item.
Params:
Name | Type | Attribute | Description |
item | Item | The item to store |
|
schema | Schema | The schema for the name and primary properties. |
|
metadata | Metadata | An object with a projectName and projectVersion property. |