UNPKG

amazon-qldb-kvs-nodejs

Version:

A helper module, simplifying basic interactions with Amazon Quantum Ledger Database for Node.js through a simple key-value store interface.

16 lines (15 loc) 785 B
import { QldbDriver } from "amazon-qldb-driver-nodejs"; export { LedgerMetadata } from "./GetMetadata"; /** * Return an array of table names in UPPER CASE * @returns Returns an array of table names in UPPER CASE. * @throws Error: If error happen during the process. */ export declare function listTables(qldbDriver: QldbDriver): Promise<string[]>; /** * Create table with index in a single transaction. * @param tableName Name of the table to create. * @param keyAttributeName A name of a key attribute belonging to a document. * @returns Promise which fulfills with the number of changes to the database. Returns 0 if table already exists. */ export declare function createTableWithIndex(qldbDriver: QldbDriver, tableName: string, keyAttributeName: string): Promise<number>;