Type alias DataItemDBDriver<ItemType, UniquelyIdentifyingFieldName>

DataItemDBDriver<ItemType, UniquelyIdentifyingFieldName>: {
    createItem: ((newItem) => Promise<ItemType[UniquelyIdentifyingFieldName]>);
    deleteItem: ((uniqueIdentifier) => Promise<boolean>);
    listItems: ((config, selectedFields?) => Promise<ListItemsResults<Partial<ItemType>>>);
    readItem: ((uniqueIdentifier, selectedFields?) => Promise<Partial<ItemType>>);
    updateItem: ((uniqueIdentifier, updatedItem) => Promise<boolean>);
}

The API for a database driver.

Type Parameters

Type declaration