Methods
createTables
-
Parameters
-
databaseName: string
-
-
Default value ensureParent: boolean = false
deleteRows
- deleteRows(databaseName: string, tableName: string, items: RawDBRowKey[]): Promise<object>
-
Parameters
-
databaseName: string
-
tableName: string
-
Returns Promise<object>
insertRows
- insertRows(databaseName: string, tableName: string, items: RawDBRowInsert[], ensureParent?: boolean): Promise<object>
-
Parameters
-
databaseName: string
-
tableName: string
-
-
Default value ensureParent: boolean = false
Returns Promise<object>
listRows
-
Parameters
-
databaseName: string
-
tableName: string
-
retrieveRow
- retrieveRow(databaseName: string, tableName: string, rowKey: string): Promise<RawDBRow>
-
Parameters
-
databaseName: string
-
tableName: string
-
rowKey: string
Create databases
const databases = await client.raw.createDatabases([{ name: 'My company' }]);