feat: node list tables pagination (#733)

This commit is contained in:
Aidan
2023-12-21 11:37:19 -05:00
committed by Weston Pace
parent 5376970e87
commit b4ae3f3097

View File

@@ -57,8 +57,8 @@ export class RemoteConnection implements Connection {
return 'db://' + this._client.uri
}
async tableNames (): Promise<string[]> {
const response = await this._client.get('/v1/table/')
async tableNames (pageToken: string = '', limit: number = 10): Promise<string[]> {
const response = await this._client.get('/v1/table/', { limit, page_token: pageToken })
return response.data.tables
}