@textile/hub > Client > open
Client.open() method
open creates and enters a new store on the remote node.
Signature:
open(threadID: ThreadID, name?: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
threadID | ThreadID | the ID of the database |
name | string | The human-readable name for the database |
Returns:
Promise<void>
Example
import {Client, ThreadID} from '@textile/hub'
async function openDB (client: Client, threadID: ThreadID) {
await client.open(threadID)
}